- Fixed help-text when system doesn't support long-options

- Cleaned up some code w.r.t short and/or long options, added includes
  for getopt on freebsd.


git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@17 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Mark Janssen 2002-04-20 13:45:02 +00:00
parent 2684bdb39b
commit 78adc27214
4 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Changes to proxytunnel version 1.0.8 -- Fri Apr 19 10:25:00 CET 2002
- Fixed help-text when system doesn't support long-options
- Cleaned up some code w.r.t short and/or long options, added includes
for getopt on freebsd.
Changes to proxytunnel version 1.0.7 -- Wed Nov 28 09:49:41 CET 2001
- Added rpm spec file by Ralph Loader <suckfish@ihug.co.nz> -- Maniac

View file

@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "config.h"
#ifndef HAVE_GETOPT_LONG
@ -59,6 +60,12 @@ cmdline_parser_print_help (void)
-v --verbose Turn on verbosity (default=off)\n\
-q --quiet Suppress messages (default=off)\n\
", PACKAGE);
#ifndef HAVE_GETOPT_LONG
printf( "\n"
"Notice: This version is compiled without support for long options.\n"
"This means you can only use the short (1 letter) options on the commandline.\n" );
#endif
}
@ -120,9 +127,9 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar
while (1)
{
#ifdef HAVE_GETOPT_LONG
int option_index = 0;
#ifdef HAVE_GETOPT_LONG
static struct option long_options[] = {
{ "help", 0, NULL, 'h' },
{ "version", 0, NULL, 'V' },

View file

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define VERSION "1.0.7"
#define VERSION "1.0.8"
#define PACKAGE "Proxytunnel"
#define PURPOSE "Build generic tunnels through HTTPS proxys"
#define AUTHORS "Jos Visser (Muppet) <josv@osp.nl>, Mark Janssen (Maniac) <maniac@maniac.nl>"

Binary file not shown.