Skip to content

Commit aa0b8f3

Browse files
committed
mpy-cross/main: Use MICROPY_BANNER_NAME_AND_VERSION for --version.
Gives the same output and keeps things consistent across the code base. Signed-off-by: Damien George <[email protected]>
1 parent 1fe3b47 commit aa0b8f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mpy-cross/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ MP_NOINLINE int main_(int argc, char **argv) {
248248
if (strcmp(argv[a], "-X") == 0) {
249249
a += 1;
250250
} else if (strcmp(argv[a], "--version") == 0) {
251-
printf("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE
251+
printf(MICROPY_BANNER_NAME_AND_VERSION
252252
"; mpy-cross emitting mpy v" MP_STRINGIFY(MPY_VERSION) "." MP_STRINGIFY(MPY_SUB_VERSION) "\n");
253253
return 0;
254254
} else if (strcmp(argv[a], "-v") == 0) {

0 commit comments

Comments
 (0)