From 6557b7b080abab676cc15774bb4b4428e776cd03 Mon Sep 17 00:00:00 2001 From: jwansek Date: Mon, 22 Nov 2021 18:35:10 +0000 Subject: added argument parsing --- src/Compiler/helpfile.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Compiler/helpfile.txt (limited to 'src/Compiler/helpfile.txt') 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. -- cgit v1.2.3