From 6ec2e7a30c30d6a8cd96c9ffa4fc4d1f484596a5 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 18 Jan 2008 21:45:12 +0000 Subject: Finish fixing option parsing for bcfg2-repo-validate git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4265 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Options.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib/Options.py b/src/lib/Options.py index fc1f63a54..3bb7fe872 100644 --- a/src/lib/Options.py +++ b/src/lib/Options.py @@ -1,7 +1,7 @@ '''Option parsing library for utilities''' __revision__ = '$Revision$' -import getopt, os, socket, sys, ConfigParser +import getopt, os, socket, sys, ConfigParser, Bcfg2.Client.Tools def bool_cook(x): if x: @@ -157,7 +157,7 @@ SERVER_KEY = Option('Path to SSL key', cf=('communication', 'key'), SERVER_PASSWORD = Option('Communication Password', cmd='-x', odesc='', cf=('communication', 'password'), default=False) INSTALL_PREFIX = Option('Installation location', cf=('server', 'prefix'), - default='/usr') + default='/usr', odesc='') SERVER_PROTOCOL = Option('Server Protocol', cf=('communication', 'procotol'), default='xmlrpc/ssl') SENDMAIL_PATH = Option('Path to sendmail', cf=('reports', 'sendmailpath'), @@ -175,9 +175,10 @@ CLIENT_EXTRA_DISPLAY = Option('enable extra entry output', CLIENT_PARANOID = Option('make automatic backups of config files', default=False, cmd='-P', ) CLIENT_AGENT = Option('run in agent (continuous) mode, wait for reconfigure command from server', default=False, cmd='-A', ) -CLIENT_DRIVERS = Option('Specify tool driver set', default=False, - cmd='-D', cf=('client', 'drivers'), - odesc="") +CLIENT_DRIVERS = Option('Specify tool driver set', cmd='-D', + cf=('client', 'drivers'), + odesc="", cook=list_split, + default=','.join(Bcfg2.Client.Tools.default)) CLIENT_CACHE = Option('store the configuration in a file', default=False, cmd='-c', odesc="") CLIENT_REMOVE = Option('force removal of additional configuration items', -- cgit v1.2.3-1-g7c22