11<%namespace name =" util" file =" ../../lib/util.mako" /> \
2+ <%!
3+ from cli import mangle_subcommand
4+ %> \
25<%def name = "new(c ) "> \
36docopt!(Args derive Debug, "
4- Usage: ${ util.program_name()} [options] (<OUTPUT-FILE >|-)
5- ${ util.program_name()} --help
7+ Usage:
8+ % for resource in sorted (c.rta_map.keys()):
9+ <%
10+ mangled_method_names = [mangle_subcommand(method) for method in sorted (c.rta_map[resource])]
11+ assert mangled_method_names
12+ %> \
13+ ${ util.program_name()} ${ mangle_subcommand(resource)} \
14+ % if len (mangled_method_names) > 1 :
15+ (\
16+ % endif
17+ ${ ' |' .join(mangled_method_names)} \
18+ % if len (mangled_method_names) > 1 :
19+ )\
20+ % endif
621
7- Options:
8- --width <X > The width of the output image [default: 1024]
9- --height <Y > The height of the output image [default: 1024]
10- --samples-per-pixel <SAMPLES > Amount of samples per pixel. 4 means 16 over-samples [default: 1]
11- --num-cores <NUM _CORES > Amount of cores to do the rendering on [default: 1]
12- If this is not set, you may also use the RTRACEMAXPROCS
13- environment variable, e.g. RTRACEMAXPROCS=4.
14- The commandline always overrides environment variables.
15-
16- <OUTPUT-FILE >|- Either a file with .tga extension, or - to write file to stdout
17- "
18- , flag_samples_per_pixel: u16
19- , flag_height: u16
20- , flag_width: u16
21- , flag_num_cores: usize);
22+ % endfor # end for each resource
23+ ${ util.program_name()} --help
24+ ");
2225</%def >
0 commit comments