Skip to content

Commit

Permalink
main: improve help text
Browse files Browse the repository at this point in the history
Closes #613.
  • Loading branch information
layday committed May 11, 2023
1 parent e6d0616 commit de2ea5f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/build/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def main_parser() -> argparse.ArgumentParser:
'-o',
type=str,
help=f'output directory (defaults to {{srcdir}}{os.sep}dist)',
metavar='PATH',
)
parser.add_argument(
'--skip-dependency-check',
Expand All @@ -324,14 +325,18 @@ def main_parser() -> argparse.ArgumentParser:
'--no-isolation',
'-n',
action='store_true',
help='do not isolate the build in a virtual environment',
help='disable building the project in an isolated virtual environment. '
'Build dependencies must be installed separately when this option is used',
)
parser.add_argument(
'--config-setting',
'-C',
action='append',
help='pass options to the backend. options which begin with a hyphen must be in the form of '
'"--config-setting=--opt(=value)" or "-C--opt(=value)"',
help='settings to pass to the backend. Multiple settings can be provided. '
'Settings beginning with a hyphen will erroneously be interpreted as options to build if separated '
'by a space character; use `--config-setting=--my-setting -C--my-other-setting`',
metavar='KEY[=VALUE]',
)
)
return parser

Expand Down

0 comments on commit de2ea5f

Please sign in to comment.