From: Andrew Deason Date: Fri, 14 Jun 2013 21:17:44 +0000 (-0500) Subject: viced: Misc argument parsing fixes X-Git-Tag: upstream/1.8.0_pre1^2~915 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f2ac99c5b4e905f77d64efea9a9d9ab357331957;p=packages%2Fo%2Fopenafs.git viced: Misc argument parsing fixes - It's -pctspare, not pctspare. - The -config and -logfile options are already specified in the "testing" options section. Don't specify them again here. Change-Id: Ieace97d92d35dc2e310a8122bdec7987246aa723 Reviewed-on: http://gerrit.openafs.org/10416 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear --- diff --git a/src/viced/viced.c b/src/viced/viced.c index 0129d391d..2ed8324cd 100644 --- a/src/viced/viced.c +++ b/src/viced/viced.c @@ -1042,7 +1042,7 @@ ParseArgs(int argc, char *argv[]) cmd_AddParmAtOffset(opts, OPT_spare, "-spare", CMD_SINGLE, CMD_OPTIONAL, "kB overage on volume quota"); - cmd_AddParmAtOffset(opts, OPT_pctspare, "pctspare", CMD_SINGLE, + cmd_AddParmAtOffset(opts, OPT_pctspare, "-pctspare", CMD_SINGLE, CMD_OPTIONAL, "percentage overage on volume quota"); cmd_AddParmAtOffset(opts, OPT_hostcpsrefresh, "-hr", CMD_SINGLE, @@ -1116,12 +1116,8 @@ ParseArgs(int argc, char *argv[]) CMD_OPTIONAL, "location of audit log"); cmd_AddParmAtOffset(opts, OPT_auditiface, "-audit-interface", CMD_SINGLE, CMD_OPTIONAL, "interface to use for audit logging"); - cmd_AddParmAtOffset(opts, OPT_config, "-config", CMD_SINGLE, CMD_OPTIONAL, - "configuration location"); cmd_AddParmAtOffset(opts, OPT_debug, "-d", CMD_SINGLE, CMD_OPTIONAL, "debug level"); - cmd_AddParmAtOffset(opts, OPT_logfile, "-logfile", CMD_SINGLE, - CMD_OPTIONAL, "location of logfile"); cmd_AddParmAtOffset(opts, OPT_mrafslogs, "-mrafslogs", CMD_FLAG, CMD_OPTIONAL, "enable MRAFS style logging"); cmd_AddParmAtOffset(opts, OPT_threads, "-p", CMD_SINGLE, CMD_OPTIONAL,