diff --git a/src/remoted/main.c b/src/remoted/main.c index e02f9bfd6..e7e5e8b27 100755 --- a/src/remoted/main.c +++ b/src/remoted/main.c @@ -15,6 +15,25 @@ #include "shared.h" #include "remoted.h" +/* print help statement */ +void help_local() +{ + print_header(); + print_out(" %s: -[Vhdtf] [-u user] [-g group] [-c config] [-D dir]", ARGV0); + print_out(" -V Version and license message"); + print_out(" -h This help message"); + print_out(" -d Execute in debug mode. This parameter"); + print_out(" can be specified multiple times"); + print_out(" to increase the debug level."); + print_out(" -t Test configuration"); + print_out(" -f Run in foreground"); + print_out(" -u Run as 'user'"); + print_out(" -g Run as 'group'"); + print_out(" -c Read the 'config' file"); + print_out(" -D Chroot to 'dir'"); + print_out(" "); + exit(1); +} int main(int argc, char **argv) { @@ -39,7 +58,7 @@ int main(int argc, char **argv) print_version(); break; case 'h': - help(ARGV0); + help_local(); break; case 'd': nowDebug(); @@ -71,6 +90,9 @@ int main(int argc, char **argv) ErrorExit("%s: -D needs an argument",ARGV0); dir = optarg; break; + default: + help_local(); + break; } }