diff options
author | martinko | 2013-02-13 09:42:35 +0000 |
---|---|---|
committer | martinko | 2013-02-13 09:42:35 +0000 |
commit | 934a9b2c505c3ad04a84074a3ff976523cbb0dfd (patch) | |
tree | 308ba0d740fbd664ba71fcb95aaa7f3022f1c60e /python/skytools/scripting.py | |
parent | d8bedca15dc52e84603dbdc455b020195cbf0f23 (diff) |
noise
Diffstat (limited to 'python/skytools/scripting.py')
-rw-r--r-- | python/skytools/scripting.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/skytools/scripting.py b/python/skytools/scripting.py index fd7805d8..23c3ef56 100644 --- a/python/skytools/scripting.py +++ b/python/skytools/scripting.py @@ -381,11 +381,11 @@ class BaseScript(object): parse command line arguments. Note that it can be overridden both directions - either DBScript - will initialize a instance and passes to user code or user can + will initialize an instance and pass it to user code or user can initialize and then pass to DBScript.init_optparse(). @param parser: optional OptionParser() instance, - where DBScript should attachs its own arguments. + where DBScript should attach its own arguments. @return: initialized OptionParser() instance. """ if parser: @@ -393,6 +393,7 @@ class BaseScript(object): else: p = optparse.OptionParser() p.set_usage("%prog [options] INI") + # generic options p.add_option("-q", "--quiet", action="store_true", help = "log only errors and warnings") |