]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
cgconfig: unify the help output
authorIvana Hutarova Varekova <varekova@redhat.com>
Thu, 26 Sep 2013 09:59:32 +0000 (11:59 +0200)
committerIvana Hutarova Varekova <varekova@redhat.com>
Thu, 26 Sep 2013 09:59:32 +0000 (11:59 +0200)
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 <varekova@redhat.com>
Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
Acked-by: Jan Safranek <jsafrane@redhat.com>
src/tools/cgconfig.c

index cee007ec714cc5c7c67b658ea0a15588a850fb0c..e8bb5a2e553b4c91f70d01be8d0166afb08c7fa1 100644 (file)
@@ -44,20 +44,19 @@ static void usage(int status, char *progname)
        }
        printf("Usage: %s [-h] [-f mode] [-d mode] [-s mode] "\
                "[-t <tuid>:<tgid>] [-a <agid>:<auid>] [-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 <tuid>:<tgid>              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 <tuid>:<tgid>              Default owner of the tasks "\