SourceForge has been redesigned. Learn more.
Close

#126 CLI: Wrong BNF and/or error when omitting fmt in output

open
nobody
None
5
2014-02-18
2011-09-06
PetaMem R&D
No

Normally, parameters given in square brackets are optional.

Placeholer/variables are given in angle brackets.

the correct definition of the output CLI parameter would be

-o html | framedhtml

Changing it altogether, by swapping the order (or introducing a -fmt parameter) and giving e.g. "html" as default, one could do

NaturalDocs -i . -o /outdir -p /projdir

in the project directory and not being shouted at

The -o option needs two parameters: -o [format] [directory]
You did not specify an output directory.
Type NaturalDocs -h to see the syntax reference.

To sum up: Nice prog, but improve CLI handling in general. GetOpt can do better. :-)
It could use some PBP also.

Discussion


Log in to post a comment.