# HG changeset patch # User Sylvain Thénault # Date 1301331767 -7200 # Node ID 5893b899c21f4f8ce493037b8f6e7f76a7b1889c # Parent 5eb622c0c672614349a8d1f4408739512d62cf64 [c-c create] we should also skip option with no type, else we may generate title for section without any option to fill diff -r 5eb622c0c672 -r 5893b899c21f cwctl.py --- a/cwctl.py Mon Mar 28 18:57:34 2011 +0200 +++ b/cwctl.py Mon Mar 28 19:02:47 2011 +0200 @@ -366,8 +366,10 @@ print helper.bootstrap(cubes, self.config.config_level) # input for cubes specific options - for section in set(sect.lower() for sect, opt, optdict in config.all_options() - if optdict.get('level') <= self.config.config_level): + sections = set(sect.lower() for sect, opt, odict in config.all_options() + if 'type' in odict + and odict.get('level') <= self.config.config_level) + for section in sections: if section not in ('main', 'email', 'pyro'): print '\n' + underline_title('%s options' % section) config.input_config(section, self.config.config_level)