mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
--help output re-include version info
print short error message and --help hint on bad input (and not the entire --help output) git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@216 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
cd4660487a
commit
3e41a9f14c
1 changed files with 4 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ void cmdline_parser_print_version (void) {
|
|||
}
|
||||
|
||||
void cmdline_parser_print_help (void) {
|
||||
// cmdline_parser_print_version ();
|
||||
cmdline_parser_print_version ();
|
||||
printf(
|
||||
"Usage: %s [OPTIONS]...\n"
|
||||
"Build generic tunnels trough HTTPS proxy's, supports HTTP authorization\n"
|
||||
|
|
@ -408,8 +408,9 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar
|
|||
|
||||
if (! args_info->proxy_given && ! args_info->dest_given ) {
|
||||
clear_args ();
|
||||
cmdline_parser_print_help ();
|
||||
exit(0);
|
||||
// cmdline_parser_print_help ();
|
||||
message( "No proxy or destination given, exiting\nUse '--help' flag for usage info\n" );
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* For Windows quiet is the default output. -- Dag */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue