All implementation have the same CLI:
maze [command] [options]
maze (-h|--help)
-
-h
,--help
Show usage help.
There default command is gen
.
maze gen [options]
Generate maze.
maze -s 30x20
Options:
-
-W <WIDTH>
,--width=<WIDTH>
Maze width in number of CELLs. Default is
30
. -
-H <HEIGHT>
,--height=<HEIGHT>
Maze height in number of CELLs. Default is
10
.Notice about uppercase
-H
to not mix with-h
which is usually "help". -
-s <SIZE>
,--size=<SIZE>
Alternative way to set both width and height at once. The
SIZE
must be in form<WIDTH>x<HEIGHT>
. So, the default size is30x10
. -
-B <BL>
,--branch-length=<BL>
The branch length option for generation.
BL
can be an integer > 1 (number of CELLs), stringmax
(which isWIDTH * HEIGHT
), or decimal from 0 to 1 as fraction of max (for example,0.2
isround(0.2 * WIDTH * HEIGHT)
). Default is 10.See "Input options" in Generation Algorithms.
-
-f <FORMAT>
,--format=<FORMAT>
Output format. Can be one of
art
,json
ortext
. The default isart
to be human readable. -
-c <NAME>=<VALUE>
Output format option. The
<NAME>
depends on chosen format in-f
.
Show usage help.
maze help [command]
Show help either about specified command
or common usage help.
Solve a maze from input.
--input-format=<FORMAT>
--output-format=<FORMAT>