Skip to content

Commit

Permalink
vls has its own 'help' flag since -h is a standard formatting flag fo…
Browse files Browse the repository at this point in the history
…r ls. Changed coding style on how this flag is notice.

The ' TRUE ( do or do)' syntax was confusing my editor's 'lilt'.
  • Loading branch information
ijiraq committed Jul 10, 2015
1 parent 2d90e9e commit c1d7a47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/vls
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ if __name__ == '__main__':
(opt, args) = parser.parse_args()
# We disabled -h/--help so vls can have a -h option.
# Here we re-enable it but only with --help
opt.help and (parser.print_help() or sys.exit(0))
if opt.help:
parser.print_help()
sys.exit(0)
parser.process_informational_options()

if not len(args) > 0:
Expand Down

0 comments on commit c1d7a47

Please sign in to comment.