diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-12-31 14:10:00 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-12-31 14:10:00 +0000 |
commit | 98374c47a92c6d6d67a5e552533c27ea5728c66d (patch) | |
tree | f9bee1674acf7c854e5ea6a451e15ad86dcf677f | |
parent | 9bdf6993448cd6a3c50fee7c38c833ebe558ad58 (diff) | |
download | bcfg2-98374c47a92c6d6d67a5e552533c27ea5728c66d.tar.gz bcfg2-98374c47a92c6d6d67a5e552533c27ea5728c66d.tar.bz2 bcfg2-98374c47a92c6d6d67a5e552533c27ea5728c66d.zip |
Add support for command line args as well as options
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4153 ce84e21b-d406-0410-9b95-82705330c041
-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 21616d1e2..2fc8711cc 100644 --- a/src/lib/Options.py +++ b/src/lib/Options.py @@ -114,6 +114,7 @@ class OptionSet(dict): self.helpExit(err) if '-h' in argv: self.helpExit('', 0) + self['args'] = args for key in self.keys(): option = self[key] if do_getopt: @@ -144,7 +145,7 @@ SERVER_STRUCTURES = Option('Server structure list', cf=('server', 'structures'), default='Bundler,Base', cook=list_split) SERVER_LOCATION = Option('Server Location', cf=('components', 'bcfg2'), - default=(socket.gethostname(), 0), cmd='-S', + default='https://localhost:6789', cmd='-S', odesc='https://server:port') SERVER_STATIC = Option('Server runs on static port', cf=('components', 'bcfg2'), default='', cook=bool_cook) |