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