summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-01-19 18:48:11 +0000
committerLars Wirzenius <liw@liw.fi>2013-01-19 18:48:11 +0000
commit1b9b4ae188d61e4c02032baef28ffdbfd68c17c7 (patch)
treea86be3168efc77d89fd925bccc4d06ffe54b3201 /example.py
parenta491882c851b2bbef5b5a04a2600717487558151 (diff)
downloadcliapp-1b9b4ae188d61e4c02032baef28ffdbfd68c17c7.tar.gz
Disallow a default value of None
None is not a valid value for any setting type, and it can't be dumped or expressed in config files at all.
Diffstat (limited to 'example.py')
-rw-r--r--example.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/example.py b/example.py
index 7e2a4a7..c86aaea 100644
--- a/example.py
+++ b/example.py
@@ -39,6 +39,8 @@ class ExampleApp(cliapp.Application):
group='Test Group')
self.settings.string(['yoyo'], 'yoyo', group=cliapp.config_group_name)
+
+ self.settings.string(['nono'], 'nono', default=None)
# We override process_inputs to be able to do something after the last
# input line.