diff --git a/unix/main.c b/unix/main.c index b5f7a82f18..029a8effaf 100644 --- a/unix/main.c +++ b/unix/main.c @@ -218,8 +218,19 @@ int usage(void) { "usage: py [-X ] [-c ] []\n" "\n" "Implementation specific options:\n" +); + int impl_opts_cnt = 0; +#if MICROPY_ENABLE_GC + printf( " heapsize= -- set the heap size for the GC\n" ); + impl_opts_cnt++; +#endif + + if (impl_opts_cnt == 0) { + printf(" (none)\n"); + } + return 1; }