Skip to content

Commit

Permalink
🐛📝: Consistent CLI documentation.
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 17, 2024
1 parent 284e8ab commit cc37091
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions ozi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
| status
| topic
LICENSE_EXPR:
LICENSE_EXPR: :term:`SPDX license expression`
| See https://spdx.github.io/spdx-spec/v2-draft/SPDX-license-expressions/
project authoring console application:
| ozi-new -h show help for the ozi-new command.
| ``ozi-new -h`` show help for the ozi-new command.
project maintainence console application:
| ozi-fix -h show help for the ozi-fix command.
| ``ozi-fix -h`` show help for the ozi-fix command.
continuous integration checkpoints:
| tox -e lint run formatting, linting, and typechecking.
| tox -e test run testing and coverage.
| tox -e dist run distribution and packaging.
| ``tox -e lint`` run formatting, linting, and typechecking.
| ``tox -e test`` run testing and coverage.
| ``tox -e dist`` run distribution and packaging.
""" # pragma: no cover

parser = argparse.ArgumentParser(
Expand Down
20 changes: 10 additions & 10 deletions ozi/fix/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
'--strict',
default=False,
action=BooleanOptionalAction,
help='strict mode raises warnings to errors default: ``--no-strict``',
help='strict mode raises warnings to errors, default: no',
)
missing_output.add_argument(
'--pretty',
default=False,
action=BooleanOptionalAction,
help='pretty mode outputs indented json, default: ``--no-pretty``',
help='pretty mode outputs indented json, default: no',
)
missing_parser.add_argument(
'target',
Expand Down Expand Up @@ -117,13 +117,13 @@
'--strict',
default=False,
action=BooleanOptionalAction,
help='strict mode raises warnings to errors.',
help='strict mode raises warnings to errors, default: no',
)
source_output.add_argument(
'-p',
'--pretty',
action='store_true',
help='pretty print JSON output',
default=False,
action=BooleanOptionalAction,
help='pretty mode outputs indented json, default: no',
)
test_parser.add_argument(
'-a',
Expand Down Expand Up @@ -163,13 +163,13 @@
'--strict',
default=False,
action=BooleanOptionalAction,
help='strict mode raises warnings to errors.',
help='strict mode raises warnings to errors, default: no',
)
test_output.add_argument(
'-p',
'--pretty',
action='store_true',
help='pretty print JSON output',
default=False,
action=BooleanOptionalAction,
help='pretty mode outputs indented json, default: no',
)
tools = parser.add_mutually_exclusive_group() # pragma: no cover
tools.add_argument( # pragma: no cover
Expand Down
20 changes: 10 additions & 10 deletions ozi/new/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
'--intended-audience',
metavar='AUDIENCE_NAMES',
type=str,
help='Classifier: Intended Audience (Multiple Use)(default: ["Other Audience"])',
help='Classifier: Intended Audience (Multiple Use), default: ["Other Audience"]',
default=METADATA.spec.python.pkg.info.classifiers.intended_audience,
nargs='?',
action=CloseMatch,
Expand All @@ -128,14 +128,14 @@
choices=frozenset(('Typed', 'Stubs Only')),
nargs='?',
metavar='PY_TYPED_OR_STUBS',
help='Classifier: Typing (Multiple Use)(default: [Typed])',
help='Classifier: Typing (Multiple Use), default: ["Typed"]',
default=METADATA.spec.python.pkg.info.classifiers.typing,
)
defaults.add_argument(
'--environment',
metavar='ENVIRONMENT_NAMES',
default=METADATA.spec.python.pkg.info.classifiers.environment,
help='Classifier: Environment (Multiple Use)(default: ["Other Environment"])',
help='Classifier: Environment (Multiple Use), default: ["Other Environment"]',
action=CloseMatch,
nargs='?',
type=str,
Expand All @@ -145,7 +145,7 @@
default='LICENSE.txt',
metavar='LICENSE_FILENAME',
choices=frozenset(('LICENSE.txt',)),
help='Classifier: License File (Single Use)(default: LICENSE.txt)',
help='Classifier: License File (Single Use), default: "LICENSE.txt"',
type=str,
)
optional.add_argument(
Expand Down Expand Up @@ -192,7 +192,7 @@
'--natural-language',
metavar='LANGUAGE_NAMES',
default=['English'],
help='Classifier: Natural Language (Multiple Use)(default: [English])',
help='Classifier: Natural Language (Multiple Use), default: ["English"]',
action=CloseMatch,
type=str,
nargs='?',
Expand All @@ -211,7 +211,7 @@
'--development-status',
action=CloseMatch,
default=METADATA.spec.python.pkg.info.classifiers.development_status,
help='Classifier: Development Status (Single Use)(default: "1 - Planning")',
help='Classifier: Development Status (Single Use), default: "1 - Planning"',
type=str,
)
defaults.add_argument(
Expand All @@ -238,23 +238,23 @@
'--verify-email',
default=False,
action=argparse.BooleanOptionalAction,
help='verify email domain deliverability(default: ``--no-verify-email``)',
help='verify email domain deliverability, default: no',
)
ozi_defaults.add_argument(
'--enable-cython',
default=False,
action=argparse.BooleanOptionalAction,
help='build extension module with Cython(default: ``--no-enable-cython``)',
help='build extension module with Cython, default: no',
)
ozi_defaults.add_argument(
'--strict',
default=False,
action=argparse.BooleanOptionalAction,
help='strict mode raises warnings to errors(default: ``--strict``)',
help='strict mode raises warnings to errors, default',
)
ozi_defaults.add_argument(
'--allow-file',
help='Add a file to the allow list for new project target folder(default: [templates,.git])',
help='Add a file to the allow list for new project target folder, default: [templates,.git]',
action='append',
type=str,
nargs='?',
Expand Down

0 comments on commit cc37091

Please sign in to comment.