diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-02 20:29:18 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-02 20:29:18 +0300 |
commit | a55a5469c3186e85a9153139ef4f228a81c9b926 (patch) | |
tree | 820ceee5426438babb2fe524ffde5eea42aa5d71 | |
parent | d4e7e06d7f8bdf3e35cac52cc1f75bdb53981783 (diff) | |
download | micropython-a55a5469c3186e85a9153139ef4f228a81c9b926.tar.gz micropython-a55a5469c3186e85a9153139ef4f228a81c9b926.zip |
unix: Support #if-able impl-specific cmdline options.
For example, we still build w/o GC enabled, so cannot really set heap size.
-rw-r--r-- | unix/main.c | 11 |
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; } |