cbeust/jcommander — Issue #102: usage() indents "Options:" line wrong for command options
Author: knutae
Created: 2012-01-31 15:17:02+00:00
State: open

When defining commands with options, usage() does not indent command options correctly. For instance, the "Options:" line for the rename and delete commands below should be aligned with the above Usage: line (or indented a step further).

Usage: MyDbTool [options] [command] [command options]
Options:
-v, --verbose increase noise
Default: false
Commands:
list List tables.
Usage: list [options]
rename Rename all tables with the given prefix.
Usage: rename [options]
Options:
--dry-run do not rename, just print the result
Default: false

delete Delete all tables matching the regular expression(s).
Usage: delete [options] ...
Options:
--dry-run Do not delete, just print the result
Default: false