Skip to content

Commit 7ca2b70

Browse files
authored
change help formatter (#120)
Signed-off-by: Piyush Bhatt <pibhatt@nvidia.com>
1 parent d0aea57 commit 7ca2b70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monai/deploy/runner/run_command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# limitations under the License.
1111

1212
import logging
13-
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace, _SubParsersAction
13+
from argparse import HelpFormatter, ArgumentParser, Namespace, _SubParsersAction
1414
from typing import List
1515

1616
from monai.deploy.runner import runner
@@ -21,7 +21,7 @@
2121

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

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

4444
return parser

0 commit comments

Comments
 (0)