From fcf59d02c9b9d14aba973551ebe92fd738813f87 Mon Sep 17 00:00:00 2001 From: Costa Tsaousis Date: Wed, 27 Jul 2016 14:09:45 +0300 Subject: [PATCH] add help info for apps.plugin --- src/apps_plugin.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/apps_plugin.c b/src/apps_plugin.c index d6058ac7..7c2ab8e4 100644 --- a/src/apps_plugin.c +++ b/src/apps_plugin.c @@ -2751,6 +2751,35 @@ void parse_args(int argc, char **argv) continue; } + if(strcmp("-h", argv[i]) == 0 || strcmp("--help", argv[i]) == 0) { + fprintf(stderr, + "apps.plugin\n" + "(C) 2016 Costa Tsaousis" + "GPL v3+\n" + "This program is a data collector plugin for netdata.\n" + "\n" + "Valid command line options:\n" + "\n" + "SECONDS set the data collection frequency\n" + "\n" + "debug enable debugging (lot of output)\n" + "\n" + "with-childs\n" + "without-childs enable / disable aggregating exited\n" + " children resources into parents\n" + " (default is enabled)\n" + "\n" + "with-guest\n" + "without-guest enable / disable reporting guest charts\n" + " (default is disabled)\n" + "\n" + "NAME read apps_NAME.conf instead of\n" + " apps_groups.conf\n" + " (default NAME=groups)\n" + ); + exit(1); + } + if(!name) { name = argv[i]; continue; -- 2.39.2