Skip to content

App runner change help formatter #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2021
Merged
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
6 changes: 3 additions & 3 deletions monai/deploy/runner/run_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# limitations under the License.

import logging
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace, _SubParsersAction
from argparse import HelpFormatter, ArgumentParser, Namespace, _SubParsersAction
from typing import List

from monai.deploy.runner import runner
Expand All @@ -21,7 +21,7 @@

def create_run_parser(subparser: _SubParsersAction, command: str, parents: List[ArgumentParser]) -> ArgumentParser:
parser = subparser.add_parser(
command, formatter_class=ArgumentDefaultsHelpFormatter, parents=parents, add_help=False
command, formatter_class=HelpFormatter, parents=parents, add_help=False
)

parser.add_argument("map", metavar="<map-image[:tag]>", help="MAP image name")
Expand All @@ -38,7 +38,7 @@ def create_run_parser(subparser: _SubParsersAction, command: str, parents: List[
dest="quiet",
action="store_true",
default=False,
help="Suppress the STDOUT and print only STDERR from the application",
help="Suppress the STDOUT and print only STDERR from the application (default: False)",
)

return parser
Expand Down