Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Adding --help option to Heron client #1739

Merged
merged 1 commit into from
Mar 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion heron/tools/cli/src/python/cli_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def create_parser(subparsers, action, help_arg):
action,
help=help_arg,
usage="%(prog)s [options] cluster/[role]/[env] <topology-name>",
add_help=False)
add_help=True)

args.add_titles(parser)
args.add_cluster_role_env(parser)
Expand Down
2 changes: 1 addition & 1 deletion heron/tools/cli/src/python/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create_parser(subparsers):
parser = subparsers.add_parser(
'help',
help='Prints help for commands',
add_help=False)
add_help=True)

# pylint: disable=protected-access
parser._positionals.title = "Required arguments"
Expand Down
2 changes: 1 addition & 1 deletion heron/tools/cli/src/python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_parser():
prog='heron',
epilog=HELP_EPILOG,
formatter_class=config.SubcommandHelpFormatter,
add_help=False,
add_help=True,
fromfile_prefix_chars='@')

subparsers = parser.add_subparsers(
Expand Down
2 changes: 1 addition & 1 deletion heron/tools/cli/src/python/restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def create_parser(subparsers):
'restart',
help='Restart a topology',
usage="%(prog)s [options] cluster/[role]/[env] <topology-name> [container-id]",
add_help=False)
add_help=True)

args.add_titles(parser)
args.add_cluster_role_env(parser)
Expand Down
2 changes: 1 addition & 1 deletion heron/tools/cli/src/python/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_parser(subparsers):
help='Submit a topology',
usage="%(prog)s [options] cluster/[role]/[env] " + \
"topology-file-name topology-class-name [topology-args]",
add_help=False
add_help=True
)

cli_args.add_titles(parser)
Expand Down
2 changes: 1 addition & 1 deletion heron/tools/cli/src/python/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_parser(subparsers):
help='Update a topology',
usage="%(prog)s [options] cluster/[role]/[env] <topology-name> "
+ "--component-parallelism <name:value>",
add_help=False)
add_help=True)

args.add_titles(parser)
args.add_cluster_role_env(parser)
Expand Down
2 changes: 1 addition & 1 deletion heron/tools/cli/src/python/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_parser(subparsers):
'version',
help='Print version of heron-cli',
usage="%(prog)s",
add_help=False)
add_help=True)

cli_args.add_titles(parser)

Expand Down