summaryrefslogtreecommitdiffstats
path: root/src/Compiler/helpfile.txt
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-11-22 18:35:10 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-11-22 18:35:10 +0000
commit6557b7b080abab676cc15774bb4b4428e776cd03 (patch)
tree93c5f32c5804cf9081e31bacabb39c5756489b44 /src/Compiler/helpfile.txt
parentf4c76ea5acaf2213289cd12003d9ec6a7eeae9ca (diff)
downloadesotericFORTRAN-6557b7b080abab676cc15774bb4b4428e776cd03.tar.gz
esotericFORTRAN-6557b7b080abab676cc15774bb4b4428e776cd03.zip
added argument parsing
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.