From: Ivana Hutarova Varekova Date: Thu, 26 Sep 2013 09:59:32 +0000 (+0200) Subject: cgconfig: unify the help output X-Git-Tag: v0.41~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ba8d70e983e45127c91426ce81cc87f6019dc20;p=thirdparty%2Flibcgroup.git cgconfig: unify the help output Remove cgconfig input free row and change the output program name to standardize the output with the other libcgroup tools. sort options based on alphabetical order Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani Acked-by: Jan Safranek --- diff --git a/src/tools/cgconfig.c b/src/tools/cgconfig.c index cee007ec..e8bb5a2e 100644 --- a/src/tools/cgconfig.c +++ b/src/tools/cgconfig.c @@ -44,20 +44,19 @@ static void usage(int status, char *progname) } printf("Usage: %s [-h] [-f mode] [-d mode] [-s mode] "\ "[-t :] [-a :] [-l FILE] "\ - "[-L DIR] ...\n", basename(progname)); - printf("\n"); + "[-L DIR] ...\n", progname); printf("Parse and load the specified cgroups configuration file\n"); - printf(" -h, --help Display this help\n"); - printf(" -l, --load=FILE Parse and load the cgroups "\ - "configuration file\n"); - printf(" -L, --load-directory=DIR Parse and load the cgroups "\ - "configuration files from a directory\n"); printf(" -a : Default owner of groups files "\ "and directories\n"); printf(" -d, --dperm=mode Default group directory "\ "permissions\n"); printf(" -f, --fperm=mode Default group file "\ "permissions\n"); + printf(" -h, --help Display this help\n"); + printf(" -l, --load=FILE Parse and load the cgroups "\ + "configuration file\n"); + printf(" -L, --load-directory=DIR Parse and load the cgroups "\ + "configuration files from a directory\n"); printf(" -s, --tperm=mode Default tasks file "\ "permissions\n"); printf(" -t : Default owner of the tasks "\