Skip to content

Commit

Permalink
add some defaults to '-h' help
Browse files Browse the repository at this point in the history
  • Loading branch information
artgoldberg committed Mar 13, 2018
1 parent e8aa03e commit d9f894f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions karr_lab_build_utils/__main__.py
Expand Up @@ -147,7 +147,7 @@ class Meta:
stacked_type = 'nested'
arguments = [
(['--dirname'], dict(
default='.', type=str, help='Path to the package')),
default='.', type=str, help="Path to the package; default='.'")),
]

@expose(hide=True)
Expand Down Expand Up @@ -176,21 +176,21 @@ class Meta:
'Path to tests to run. '
'If the `test_path` environment variable is not defined, TEST_PATH defaults to `tests`.'))),
(['--dirname'], dict(
type=str, default='.', help='Path to package to test')),
type=str, default='.', help="Path to package to test; default='.'")),
(['--verbose'], dict(
default=False, action='store_true', help='True/False to display test output')),
default=False, action='store_true', help='if set display test output')),
(['--with-xunit'], dict(
default=False, action='store_true', help='True/False to save test results to XML file')),
default=False, action='store_true', help='if set save test results to XML file')),
(['--with-coverage'], dict(
default=False, action='store_true', help='True/False to assess code coverage')),
default=False, action='store_true', help='if set assess code coverage')),
(['--coverage-dirname'], dict(
type=str, default='.', help='Directory to store coverage data')),
type=str, default='.', help="Directory to store coverage data; default='.'")),
(['--coverage-type'], dict(
type=str, default='branch',
help='Type of coverage analysis to run {statement, branch, or multiple-decision}')),
help="Type of coverage analysis to run {statement, branch, or multiple-decision}; default='branch'")),
(['--environment'], dict(
type=str, default='local',
help='Environment to run tests (local, docker, or circleci)')),
help="Environment to run tests (local, docker, or circleci); default='local'")),
(['--ssh-key-filename'], dict(
type=str, default='~/.ssh/id_rsa', help='Path to GitHub SSH key')),
]
Expand Down Expand Up @@ -374,7 +374,7 @@ class Meta:
(['tests_exit_code'], dict(
type=int, help='Exit code of the tests')),
(['--dry-run'], dict(
default=False, dest='dry_run', action='store_true', help='If true, do not send results to Coveralls and Code Climate')),
default=False, dest='dry_run', action='store_true', help='If set, do not send results to Coveralls and Code Climate')),
]

@expose(hide=True)
Expand Down Expand Up @@ -438,7 +438,7 @@ class Meta:
(['--coverage-dirname'], dict(
default='.', type=str, help="Directory to save coverage reports, which defaults to '.'.")),
(['--dry-run'], dict(
default=False, dest='dry_run', action='store_true', help='If true, do not send results to Coveralls and Code Climate')),
default=False, dest='dry_run', action='store_true', help='If set, do not send results to Coveralls and Code Climate')),
]

@expose(hide=True)
Expand Down Expand Up @@ -486,7 +486,7 @@ class Meta:
(['--coverage-dirname'], dict(
default='.', type=str, help="Directory to save coverage reports, which defaults to '.'.")),
(['--dry-run'], dict(
default=False, dest='dry_run', action='store_true', help='If true, do not send results to Coveralls and Code Climate')),
default=False, dest='dry_run', action='store_true', help='If set, do not send results to Coveralls and Code Climate')),
]

@expose(hide=True)
Expand All @@ -513,7 +513,7 @@ class Meta:
(['--coverage-dirname'], dict(
default='.', type=str, help="Directory to save coverage reports, which defaults to '.'.")),
(['--dry-run'], dict(
default=False, dest='dry_run', action='store_true', help='If true, do not send results to Coveralls')),
default=False, dest='dry_run', action='store_true', help='If set, do not send results to Coveralls')),
]

@expose(hide=True)
Expand All @@ -537,7 +537,7 @@ class Meta:
(['--coverage-dirname'], dict(
default='.', type=str, help="Directory to save coverage reports, which defaults to '.'.")),
(['--dry-run'], dict(
default=False, dest='dry_run', action='store_true', help='If true, do not send results to Code Climate')),
default=False, dest='dry_run', action='store_true', help='If set, do not send results to Code Climate')),
]

@expose(hide=True)
Expand Down
2 changes: 1 addition & 1 deletion karr_lab_build_utils/core.py
Expand Up @@ -2,7 +2,7 @@
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2016-08-02
:Copyright: 2016, Karr Lab
:Copyright: 2016-2018, Karr Lab
:License: MIT
"""

Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Expand Up @@ -2,7 +2,7 @@
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2016-08-03
:Copyright: 2016, Karr Lab
:Copyright: 2016-2018, Karr Lab
:License: MIT
"""

Expand Down

0 comments on commit d9f894f

Please sign in to comment.