mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
Write usage to stderr when bad options given
This commit is contained in:
parent
957ffe6a42
commit
bb0a0054c8
1 changed files with 2 additions and 1 deletions
3
main.c
3
main.c
|
@ -31,7 +31,8 @@
|
||||||
|
|
||||||
#if SEXP_USE_MAIN_HELP
|
#if SEXP_USE_MAIN_HELP
|
||||||
void sexp_usage(int err) {
|
void sexp_usage(int err) {
|
||||||
printf("usage: chibi-scheme [<options> ...] [<file> <args> ...]\n"
|
FILE *out = err ? stderr : stdout;
|
||||||
|
fprintf(out, "usage: chibi-scheme [<options> ...] [<file> <args> ...]\n"
|
||||||
#if SEXP_USE_FOLD_CASE_SYMS
|
#if SEXP_USE_FOLD_CASE_SYMS
|
||||||
" -f - case-fold symbols\n"
|
" -f - case-fold symbols\n"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue