diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-01-19 18:48:11 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-01-19 18:48:11 +0000 |
commit | 1b9b4ae188d61e4c02032baef28ffdbfd68c17c7 (patch) | |
tree | a86be3168efc77d89fd925bccc4d06ffe54b3201 /example.py | |
parent | a491882c851b2bbef5b5a04a2600717487558151 (diff) | |
download | cliapp-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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |