unix: Support #if-able impl-specific cmdline options.

For example, we still build w/o GC enabled, so cannot really set heap size.
This commit is contained in:
Paul Sokolovsky 2014-04-02 20:29:18 +03:00
parent d4e7e06d7f
commit a55a5469c3
1 changed files with 11 additions and 0 deletions

View File

@ -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;
}