@cryptotaxi247 / netdata-1 / commits / fcf59d02c

add help info for apps.plugin

Costa Tsaousis committed Jul 27, 2016 at 14:09 UTC fcf59d02c9b9d14aba973551ebe92fd738813f87
1 file changed +29
src/apps_plugin.c
+29
@@ -2751,6 +2751,35 @@ void parse_args(int argc, char **argv)
2751 continue;
2752 }
2753
2754 + if(strcmp("-h", argv[i]) == 0 || strcmp("--help", argv[i]) == 0) {
2755 + fprintf(stderr,
2756 + "apps.plugin\n"
2757 + "(C) 2016 Costa Tsaousis"
2758 + "GPL v3+\n"
2759 + "This program is a data collector plugin for netdata.\n"
2760 + "\n"
2761 + "Valid command line options:\n"
2762 + "\n"
2763 + "SECONDS set the data collection frequency\n"
2764 + "\n"
2765 + "debug enable debugging (lot of output)\n"
2766 + "\n"
2767 + "with-childs\n"
2768 + "without-childs enable / disable aggregating exited\n"
2769 + " children resources into parents\n"
2770 + " (default is enabled)\n"
2771 + "\n"
2772 + "with-guest\n"
2773 + "without-guest enable / disable reporting guest charts\n"
2774 + " (default is disabled)\n"
2775 + "\n"
2776 + "NAME read apps_NAME.conf instead of\n"
2777 + " apps_groups.conf\n"
2778 + " (default NAME=groups)\n"
2779 + );
2780 + exit(1);
2781 + }
2782 +
2783 if(!name) {
2784 name = argv[i];
2785 continue;