Commit aa0b8f34 authored by Damien George's avatar Damien George

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: default avatarDamien George <damien@micropython.org>
parent 1fe3b47c
......@@ -248,7 +248,7 @@ MP_NOINLINE int main_(int argc, char **argv) {
if (strcmp(argv[a], "-X") == 0) {
a += 1;
} else if (strcmp(argv[a], "--version") == 0) {
printf("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE
printf(MICROPY_BANNER_NAME_AND_VERSION
"; mpy-cross emitting mpy v" MP_STRINGIFY(MPY_VERSION) "." MP_STRINGIFY(MPY_SUB_VERSION) "\n");
return 0;
} else if (strcmp(argv[a], "-v") == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment