diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-05-26 11:51:39 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-05-26 11:51:39 +0200 |
commit | 2afae060e28ee56987829ffdbebdf5f83e221676 (patch) | |
tree | fe0dd9d7eaeacf6df424cbdf12d88289d0f3c0f8 /configuration.py | |
parent | 3d9db7d8d5ba6749848e80dd72947e120835aafd (diff) | |
download | logilab-common-2afae060e28ee56987829ffdbebdf5f83e221676.tar.gz |
skip option with no type, avoid pb with generated option such as long-help
Diffstat (limited to 'configuration.py')
-rw-r--r-- | configuration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configuration.py b/configuration.py index e781bf1..8f55490 100644 --- a/configuration.py +++ b/configuration.py @@ -1069,7 +1069,7 @@ def read_old_config(newconfig, changes, configfile): newconfig[optname] = newvalue done.add(optname) for optname, optdef in newconfig.options: - if not optname in done: + if optdef.get('type') and not optname in done: newconfig.set_option(optname, oldconfig[optname], optdict=optdef) |