From 07bcebb74f5ca9ecb69104a0fba7f65117be70b9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 13 Nov 2009 20:22:07 +0000 Subject: small at options_print_usage diff --git a/options.c b/options.c index 5ee3e50..e1db6bd 100644 --- a/options.c +++ b/options.c @@ -320,24 +320,30 @@ void options_clear(options_t* opt) void options_print_usage() { printf("USAGE:\n"); - printf("switchctl [-h|--help] prints this...\n"); - printf(" [-D|--nodaemonize] don't run in background\n"); - printf(" [-u|--username] change to this user\n"); - printf(" [-g|--groupname] change to this group\n"); - printf(" [-C|--chroot] chroot to this directory\n"); - printf(" [-P|--write-pid] write pid to this file\n"); - printf(" [-L|--log] :[,[,..]]\n"); - printf(" add a log target, can be invoked several times\n"); - printf(" [-s|--command-sock] the command socket e.g. /var/run/rhctl/switchctl.sock\n"); #ifdef OPT_SWITCHCTL - printf(" [-f|--config] the configuration file e.g. /etc/rhctl/switchctl.conf\n"); - printf(" [-d|--device] the tty the audio switch is connected to e.g. /dev/audioswitch\n"); - printf(" [-m|--mode] the initial mode to use e.g. master\n"); - printf(" [-c|--channel] the initial channel to use e.g. main\n"); + printf("switchctl\n"); #endif #ifdef OPT_SERIALCLIENT - printf(" [-d|--device] the tty to connect to e.g. /dev/ttyUSB0\n"); - printf(" [-t|--type] use this client type\n"); + printf("serialclient\n"); +#endif + printf(" [-h|--help] prints this...\n"); + printf(" [-D|--nodaemonize] don't run in background\n"); + printf(" [-u|--username] change to this user\n"); + printf(" [-g|--groupname] change to this group\n"); + printf(" [-C|--chroot] chroot to this directory\n"); + printf(" [-P|--write-pid] write pid to this file\n"); + printf(" [-L|--log] :[,[,..]]\n"); + printf(" add a log target, can be invoked several times\n"); + printf(" [-s|--command-sock] the command socket e.g. /var/run/rhctl/switchctl.sock\n"); +#ifdef OPT_SWITCHCTL + printf(" [-f|--config] the configuration file e.g. /etc/rhctl/switchctl.conf\n"); + printf(" [-d|--device] the tty the audio switch is connected to e.g. /dev/audioswitch\n"); + printf(" [-m|--mode] the initial mode to use e.g. master\n"); + printf(" [-c|--channel] the initial channel to use e.g. main\n"); +#endif +#ifdef OPT_SERIALCLIENT + printf(" [-d|--device] the tty to connect to e.g. /dev/ttyUSB0\n"); + printf(" [-t|--type] use this client type\n"); #endif } -- cgit v0.10.2