about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-07 12:12:17 -0500
committerCase Duckworth2022-07-07 12:12:17 -0500
commit339e7993c9b618505e136f80bc294f29979d4958 (patch)
tree84f7858b533d3041a3e591d9ae7a9306ceb107d9
parentFix examples (diff)
downloadtrainfuck-339e7993c9b618505e136f80bc294f29979d4958.tar.gz
trainfuck-339e7993c9b618505e136f80bc294f29979d4958.zip
Add usage
-rw-r--r--README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md index a8c7369..ec8b396 100644 --- a/README.md +++ b/README.md
@@ -43,6 +43,40 @@ Or, for round-tripping ...
43fucktrain FILE.bf | trainfuck 43fucktrain FILE.bf | trainfuck
44``` 44```
45 45
46## USAGE
47
48`trainfuck -h`:
49
50```
51TRAINFUCK: CHOO CHOO
52Usage:
53trainfuck -h|--help
54trainfuck [-w WIDTH] [FLAGS...] INPUTFILE [-o OUTPUTFILE]
55
56Parameters:
57INPUTFILE The trainfuck file to process.
58 If INPUTFILE ends in .tf or .trainfuck, it will be interpreted
59 as a TRAINFUCK file; if it ends in .bf or .brainfuck, it will
60 be interpreted as a BRAINFUCK file. Otherwise, the file will
61 be assumed to be the default filetype (trainfuck).
62
63-w WIDTH Set the brainfuck output width (default: 42).
64-o OUTPUTFILE Where to send transpiled brainfuck (default: /dev/stderr).
65-- Stop processing arguments; interpret the rest as filenames
66
67FLAGS:
68-h, --help Show this help
69-c, --comments Show comments (default)
70 -C, --no-comments Hide comments
71 -z, --compact Show "compact" comments (default)
72 -Z, --no-compact Show "wide" comments
73 -x, --execute Execute trainspiled brainfuck
74 -X, --no-execute Only trainspile, do not execute (default)
75 -t, --trainfuck Force TRAINFUCK mode: interpret files as trainfuck
76 -b, --brainfuck Force BRAINFUCK mode: interpret files as brainfuck
77 -q, --quiet Don't print any more than is necessary
78```
79
46## INSTALL 80## INSTALL
47 81
48``` 82```