cgclassify: unify help output * -g option is optional * use the alphabetical order * add -h option description
Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com> --- src/tools/cgclassify.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c index bb54424..6ad7b6c 100644 --- a/src/tools/cgclassify.c +++ b/src/tools/cgclassify.c @@ -39,15 +39,16 @@ static void usage(int status, const char *program_name) program_name); return; } - printf("Usage: %s [-g <controllers>:<path>] "\ + printf("Usage: %s [[-g] <controllers>:<path>] "\ "[--sticky | --cancel-sticky] <list of pids>\n", program_name); printf("Move running task(s) to given cgroups\n"); + printf(" -h, --help Display this help\n"); printf(" -g <controllers>:<path> Control group to be displayed "\ "(-g is optional)\n"); - printf(" --sticky cgred daemon does not change "\ - "pidlist and children tasks\n"); printf(" --cancel-sticky cgred daemon change pidlist "\ "and children tasks\n"); + printf(" --sticky cgred daemon does not change "\ + "pidlist and children tasks\n"); } /* ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel