Skip to content

Commit

Permalink
Fix spelling of 'quiet'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pontillo committed Dec 9, 2014
1 parent e1a5506 commit bef7409
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Features

* Automatic option parsing
* Automatic help text (``--help``)
* Log handling (with ``-v``, ``--verbose`` and ``-q``, ``--quite`` handling)
* Log handling (with ``-v``, ``--verbose`` and ``-q``, ``--quiet`` handling)
* Testing scripts in `dry-mode`. All destructive functions/methods are wrapped and will
not be called when the ``-n`` or ``--dry-run`` option is set.
* Easy execution of other shell scripts.
Expand Down Expand Up @@ -109,7 +109,7 @@ The help text::
--extension=jpeg file extension to convert
-n, --dry-run don't actually do anything
-v, --verbose be more verbose
-q, --quite be more silent
-q, --quiet be more silent

And the result::

Expand Down
2 changes: 1 addition & 1 deletion doc/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Features
* Automatic command parsing
* Automatic help text (``--help``)

* Log handling (with ``-v``, ``--verbose`` and ``-q``, ``--quite`` handling)
* Log handling (with ``-v``, ``--verbose`` and ``-q``, ``--quiet`` handling)

* Testing scripts in `dry-mode`. All destructive functions/methods are wrapped and will
not be called when the ``-n`` or ``--dry-run`` option is set.
Expand Down
4 changes: 2 additions & 2 deletions doc/modules/command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ These decorators set options on command functions.

.. function:: no_verbosity

Disable the ``--verbose`` and ``--quite`` options for this command.
Disable the ``--verbose`` and ``--quiet`` options for this command.

.. function:: non_strict

Expand All @@ -44,4 +44,4 @@ These decorators set options on command functions.
arg2|arg3
If you are interessted in aditional options (e.g. ``--bar``) use :func:`fetch_all`
together with the :func:`non_strict` decorator.
together with the :func:`non_strict` decorator.
4 changes: 2 additions & 2 deletions scriptine/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ def parse_and_run_function(function, args=None, command_name=None,
if add_verbosity_option:
parser.add_option('--verbose', '-v', dest='verbose',
action='count', help='be more verbose')
parser.add_option('--quite', '-q', dest='quite',
parser.add_option('--quiet', '-q', dest='quiet',
action='count', help='be more silent')

(options, args) = parser.parse_args(args)

if add_verbosity_option:
verbosity = (options.verbose or 0) - (options.quite or 0)
verbosity = (options.verbose or 0) - (options.quiet or 0)
log.inc_log_level(verbosity)


Expand Down

0 comments on commit bef7409

Please sign in to comment.