Add command line arguments (L-system and number of iterations)

This commit is contained in:
Dimitri Lozeve 2018-01-17 17:19:06 +00:00
parent e71eda7c5e
commit ebe12ac42b
5 changed files with 177 additions and 88 deletions

View file

@ -45,6 +45,22 @@ For tests and documentation, run:
stack test --haddock
#+END_SRC
You can choose the L-system and the number of iteration via
command-line arguments, see the output of ~--help~:
#+BEGIN_SRC
lsystems -- Generate L-systems
Usage: lsystems-exe [LSYSTEM] [-n|--iterations N]
Generate and draw an L-system
Available options:
LSYSTEM L-system to generate (default: penroseP3)
-n,--iterations N Number of iterations (default: 5)
-h,--help Show this help text
#+END_SRC
** Examples provided
*** Space-filling curves