static inline void usage(FILE *fd) { fprintf(fd, "usage:\n"); fprintf(fd, "\t--help|-?\tshow this.\n"); fprintf(fd, "\t-to #\t\tset shutdown timeout (in sec.).\n"); lagopus_module_usage_all(fd); (void)fflush(fd); }
static void usage(FILE *fd, int exit_status) { if (exit_status != 0) { fprintf(stderr, "Try `%s --help' for more information.\n", s_progname); } else { fprintf(fd, "usage : %s [OPTION...]\n\n\ -d, --debug Runs in debug mode\n\ -v, --version Print program version\n\ -h|-?, --help Display this help and exit\n\ -l, --logfile filename Specify a log/trace file path (default: syslog)\n\ -p, --pidfile filename Specify a pid file path (default: /var/run/%s.pid)\n\ \n", s_progname, s_progname); lagopus_module_usage_all(fd); } exit(exit_status); }