]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
cgcreate, cgconfigparser: Fixed help and documentation style.
authorJan Safranek <jsafrane@redhat.com>
Fri, 9 Dec 2011 14:04:41 +0000 (15:04 +0100)
committerJan Safranek <jsafrane@redhat.com>
Fri, 16 Dec 2011 12:51:41 +0000 (13:51 +0100)
Rephrase the documentation to common style and fix minor typos.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
doc/man/cgcreate.1
src/tools/cgconfig.c
src/tools/cgcreate.c

index 259b70eeafeb897852dc57e0d05a23b769cb624c..5bab19a20796c787d4b23d57740cb1ef73f238a6 100644 (file)
@@ -21,13 +21,13 @@ allowed to set subsystem parameters and create subgroups.
 The default value is the same as has the parent cgroup.
 
 .TP
-.B -d, --dperm mode
+.B -d, --dperm=mode
 sets the permissions of a control groups directory.
 The permissions needs to be specified as octal numbers e.g.
 \fB-d 775\fR.
 
 .TP
-.B -f, --fperm mode
+.B -f, --fperm=mode
 sets the permissions of the control groups parameters.
 The permissions needs to be specified as octal numbers e.g.
 \fB-f 775\fR.
@@ -48,7 +48,7 @@ multiple times.
 display this help and exit
 
 .TP
-.B -s, --tperm mode
+.B -s, --tperm=mode
 sets the permissions of the control group tasks file.
 The permissions needs to be specified as octal numbers e.g.
 \fB-f 775\fR.
index 038c8f81f34a0b5d9c010d504b9126c047ea8517..bf9bfa8d0a94d151faec6b891c487664451a688a 100644 (file)
@@ -37,7 +37,9 @@ static struct cgroup_string_list cfg_files;
 
 static void usage(char *progname)
 {
-       printf("Usage: %s [-l FILE] ...\n", basename(progname));
+       printf("Usage: %s [-h] [-f mode] [-d mode] [-s mode] "\
+                       "[-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
+                       "[-l FILE] [-L directory] ...\n", basename(progname));
        printf("Parse and load the specified cgroups configuration file\n");
        printf("\n");
        printf("  -h, --help                    Display this help\n");
@@ -47,14 +49,14 @@ static void usage(char *progname)
                        " 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"\
+       printf("  -d, --dperm=mode              Default group directory"\
                        " permissions\n");
-       printf("  -f, --fperm mode              Default group file"\
+       printf("  -f, --fperm=mode              Default group file"\
                        " permissions\n");
-       printf("  -s --tperm mode               Default tasks file"
+       printf("  -s --tperm=mode               Default tasks file"
                        " permissions\n");
        printf("  -t <tuid>:<tgid>              Default owner of the tasks "
-                       "file");
+                       "file\n");
        exit(2);
 }
 
index ae079a1c826ed6285b495f8fccd946f5f6fcb59c..cda568140941cbbf3d0ff805bc9108014485bfff 100644 (file)
@@ -39,23 +39,23 @@ static void usage(int status, const char *program_name)
                        program_name);
        } else {
                fprintf(stdout, "Usage: %s [-h] [-f mode] [-d mode] "\
-                       "[-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
+                       "[-s mode] [-t <tuid>:<tgid>] [-a <agid>:<auid>] "\
                        "-g <controllers>:<path> [-g ...]\n",
                        program_name);
-               fprintf(stdout, "  -a <tuid>:<tgid>             Set "\
-                       "the admin permission\n");
-               fprintf(stdout, "  -d, --dperm mode             Group "\
+               fprintf(stdout, "  -a <tuid>:<tgid>             Owner "\
+                       "of the group and all its files\n");
+               fprintf(stdout, "  -d, --dperm=mode             Group "\
                        "directory permissions\n");
-               fprintf(stdout, "  -f, --fperm mode             Group "\
+               fprintf(stdout, "  -f, --fperm=mode             Group "\
                        "file permissions\n");
                fprintf(stdout, "  -g <controllers>:<path>      Control "\
                        "group which should be added\n");
                fprintf(stdout, "  -h, --help                   Display "\
                        "this help\n");
-               fprintf(stdout, "  -s --tperm mode              Tasks "\
+               fprintf(stdout, "  -s --tperm=mode              Tasks "\
                                "file permissions\n");
-               fprintf(stdout, "  -t <tuid>:<tgid>             Set "\
-                       "the task permission\n");
+               fprintf(stdout, "  -t <tuid>:<tgid>             Owner "\
+                       "of the tasks file\n");
        }
 }