On 05/03/2015 06:45 PM, Lars Wirzenius wrote:
I would make this a self.settings.string_list type option instead.
This is an option type provided by cliapp that means the value is a
list of strings. Thus
vmdebootstrap --debootstrap-option --foo --debootstrap-option --bar
would result in a value ["--foo", "--bar"], rather than having the
program have to parse the option value itself. This also means that
the cliapp configuration file parsing can handle this automatically.
another problem with string_list is that a comma is treated as a
separator so
--debootstrap-option --components=main,contrib
becomes
['--components=main', 'contrib']
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]