summaryrefslogtreecommitdiff
path: root/cliapp/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliapp/settings.py')
-rw-r--r--cliapp/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cliapp/settings.py b/cliapp/settings.py
index e281099..f92fb78 100644
--- a/cliapp/settings.py
+++ b/cliapp/settings.py
@@ -466,7 +466,8 @@ class Settings(object):
'''Build OptionParser for parsing command line.'''
# Call a callback function unless we're in configs_only mode.
- maybe = lambda func: (lambda *args: None) if configs_only else func
+ def maybe(func):
+ return (lambda *args: None) if configs_only else func
# Maintain lists of callback function calls that are deferred.
# We call them ourselves rather than have OptionParser call them