docgen: don't generate docs when help option is given
This commit is contained in:
parent
18542180ea
commit
180af88ad7
|
@ -1586,6 +1586,9 @@ getopt.parse {
|
||||||
getopt.help(parser, io.stderr)
|
getopt.help(parser, io.stderr)
|
||||||
end,
|
end,
|
||||||
done_cb = function(parser, opts, args)
|
done_cb = function(parser, opts, args)
|
||||||
|
if opts["h"] then
|
||||||
|
return
|
||||||
|
end
|
||||||
global_opts.verbose = not not opts["v"]
|
global_opts.verbose = not not opts["v"]
|
||||||
global_opts.use_dot = not opts["disable-graphviz"]
|
global_opts.use_dot = not opts["disable-graphviz"]
|
||||||
global_opts.use_notes = not opts["disable-notes"]
|
global_opts.use_notes = not opts["disable-notes"]
|
||||||
|
|
Loading…
Reference in New Issue