potatoscript cli
usage
to parse a potatoscript file, follow these steps:
-
open command prompt on windows or terminal on mac.
-
navigate to the directory where your potatoscript file is stored using cd.
-
run "(path_to_potscr.py) (potatoscript file)". if no errors are found, the code will execute.
arguments
-h or --help
shows cli help within command prompt or terminal
-l or --logpath
sets a path for a log file.
example:
potscr.py test_files/maths.potscr --logpath maths_log.txt
-s or --shell
starts the potatoscript shell prompt
note: scripts executed in the shell do not need a ~ at the start and end