From f2ac99c5b4e905f77d64efea9a9d9ab357331957 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 14 Jun 2013 16:17:44 -0500 Subject: [PATCH] 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 --- src/viced/viced.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/viced/viced.c b/src/viced/viced.c index 0129d391d8..2ed8324cda 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,