Skip to content
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

Remove "Coqpit Field: " prefix from help messages #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 coqpit/coqpit.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def _init_argparse(
f"--{arg_prefix}",
nargs="*",
type=list_field_type,
help=f"Coqpit Field: {help_prefix}",
help=help_prefix,
)
else:
# If a default value is defined, just enable editing the values from argparse
Expand Down Expand Up @@ -547,15 +547,15 @@ def parse_bool(x):
f"--{arg_prefix}",
type=parse_bool,
default=field_default,
help=f"Coqpit Field: {help_prefix}",
help=help_prefix,
metavar="true/false",
)
elif is_primitive_type(field_type):
parser.add_argument(
f"--{arg_prefix}",
default=field_default,
type=field_type,
help=f"Coqpit Field: {help_prefix}",
help=help_prefix,
)
else:
if not relaxed_parser:
Expand Down