diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-01-16 03:52:41 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-01-16 03:52:41 +0000 |
commit | 9707537bb7184a9109a7595459b4c4e84ef5b4f3 (patch) | |
tree | 6d6dae5e1a17bf9a0819e87a99581e41fe96fd59 /src/lib/Options.py | |
parent | ed4ac10a78038a4d748e5076e6dec49437301281 (diff) | |
download | bcfg2-9707537bb7184a9109a7595459b4c4e84ef5b4f3.tar.gz bcfg2-9707537bb7184a9109a7595459b4c4e84ef5b4f3.tar.bz2 bcfg2-9707537bb7184a9109a7595459b4c4e84ef5b4f3.zip |
Implement support for -b foo:bar:baz on the command line (Resolves Ticket #516)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4244 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Options.py')
-rw-r--r-- | src/lib/Options.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Options.py b/src/lib/Options.py index d797fdc9c..17c13c09b 100644 --- a/src/lib/Options.py +++ b/src/lib/Options.py @@ -128,6 +128,7 @@ class OptionSet(dict): self[key] = val list_split = lambda x:x.replace(' ','').split(',') +colon_split = lambda x:x.split(':') CFILE = Option('Specify configuration file', DEFAULT_CONFIG_LOCATION, cmd='-C', odesc='<conffile>') @@ -182,7 +183,7 @@ CLIENT_CACHE = Option('store the configuration in a file', CLIENT_REMOVE = Option('force removal of additional configuration items', default=False, cmd='-r', odesc="<entry type|all>") CLIENT_BUNDLE = Option('only configure the given bundle', default=False, - cmd='-b', odesc='<bundle>') + cmd='-b', odesc='<bundle>', cook=colon_split) CLIENT_KEVLAR = Option('run in kevlar (bulletproof) mode', default=False, cmd='-k', ) CLIENT_BUILD = Option('run in build mode', default=False, cmd='-B', ) |