summaryrefslogtreecommitdiffstats
path: root/src/Compiler/helpfile.txt
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-25 16:19:41 +0000
committerGitHub <noreply@github.com>2021-11-25 16:19:41 +0000
commitac425713cfd5a4fac7ce5b607d722eeb9954ba10 (patch)
tree4f16f1cb0b6b75c0e8975bb77f432071684e57ed /src/Compiler/helpfile.txt
parent424ac34886895756525fbf5ddd704976e2e7d7dc (diff)
parentde5022e778c12a8b91b905473f2f74bf7172eac3 (diff)
downloadesotericFORTRAN-ac425713cfd5a4fac7ce5b607d722eeb9954ba10.tar.gz
esotericFORTRAN-ac425713cfd5a4fac7ce5b607d722eeb9954ba10.zip
Merge pull request #5 from AlfieEagleton/argparse
Add argument parsing for the main program
Diffstat (limited to 'src/Compiler/helpfile.txt')
-rw-r--r--src/Compiler/helpfile.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Compiler/helpfile.txt b/src/Compiler/helpfile.txt
new file mode 100644
index 0000000..1d1c22b
--- /dev/null
+++ b/src/Compiler/helpfile.txt
@@ -0,0 +1,19 @@
+usage: Language [-h] [sourcefile] [-o output path] [-c] [-pc] [-e]
+
+positional arguments:
+ file path to a FORTRAN-like file to compile.
+ if ommitted, go to interactive mode.
+
+named arguments:
+ -o --out PATH path and name to produce the output. do
+ not include a file extension. if preceeding
+ directories do not exist, they will be
+ created.
+
+flags:
+ -h --help print this message and exit.
+ -c --keep-c-file the c program produced in the compilation
+ process will not be deleted.
+ -pc --print-c the c program will be printed to stdout
+ -e --execute the produced binary will be executed as soon
+ as compilation is finished.