summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c11
1 files changed, 11 insertions, 0 deletions
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 <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;
}