From aaef076176f39bae51a06dbbd98bf0908d2cd9fe Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 6 Jul 2022 22:10:10 -0500 Subject: Fix -h --- trainfuck.awk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trainfuck.awk b/trainfuck.awk index 1a6c19c..6a527e8 100755 --- a/trainfuck.awk +++ b/trainfuck.awk @@ -346,11 +346,15 @@ function usage() eprint() eprint("FLAGS:") eprint(" -h, --help\t\tShow this help") + eprint(" --\t\tStop processing arguments; interpret the rest as filenames") eprint(" -c, --comments\t\tShow comments" (BF_PRINT_COMMENTS ? " (default)" : "")) eprint(" -C, --no-comments\tHide comments" (BF_PRINT_COMMENTS ? "" : " (default)")) eprint(" -z, --compact\t\tShow \"compact\" comments" (BF_COMMENTS_COMPACT ? " (default)" : "")) eprint(" -Z, --no-compact\tShow \"wide\" comments" (BF_COMMENTS_COMPACT ? "" : " (default)")) eprint(" -x, --execute\t\tExecute trainspiled brainfuck" (BF_EXECUTE ? " (default)" : "")) eprint(" -X, --no-execute\tOnly trainspile, do not execute" (BF_EXECUTE ? "" : " (default)")) + eprint(" -t, --trainfuck\t\tForce TRAINFUCK mode: interpret files as trainfuck") + eprint(" -b, --brainfuck\t\tForce BRAINFUCK mode: interpret files as brainfuck") + eprint(" -q, --quiet\t\tDon't print any more than is necessary") exit } -- cgit 1.4.1-21-gabe81