Skip to content

Commit

Permalink
Update command-line parser help and usage messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hltbra committed Aug 13, 2015
1 parent a4c3aa7 commit ab00638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Usage

```
$ cron-sentry --help
usage: cron-sentry [-h] [--dsn SENTRY_DSN] [--version] cmd [arg ...]
usage: cron-sentry [-h] [--dsn SENTRY_DSN] [--string-max-length STRING_MAX_LENGTH] [--version] cmd [arg ...]
Wraps commands and reports those that fail to Sentry.
Expand All @@ -25,7 +25,7 @@ optional arguments:
--dsn SENTRY_DSN Sentry server address
--string-max-length STRING_MAX_LENGTH
The maximum characters of a string that should be sent
to Sentry
to Sentry (use -1 to send all characters)
--version show program's version number and exit
The Sentry server address can also be specified through the SENTRY_DSN
Expand Down
4 changes: 2 additions & 2 deletions cron_sentry/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
epilog=('The Sentry server address can also be specified through ' +
'the SENTRY_DSN environment variable ' +
'(and the --dsn option can be omitted).'),
usage='cron-sentry [-h] [--dsn SENTRY_DSN] [--version] cmd [arg ...]',
usage='cron-sentry [-h] [--dsn SENTRY_DSN] [--string-max-length STRING_MAX_LENGTH] [--version] cmd [arg ...]',
)
parser.add_argument(
'--dsn',
Expand All @@ -27,7 +27,7 @@
parser.add_argument(
'--string-max-length',
type=int,
help='The maximum characters of a string that should be sent to Sentry',
help='The maximum characters of a string that should be sent to Sentry (use -1 to send all characters)',
)
parser.add_argument(
'--version',
Expand Down

0 comments on commit ab00638

Please sign in to comment.