diff lib/misc.c @ 349:3fccdc9eb16f

2003-1-4 Brian Masney <masneyb@gftp.org> * lib/misc.c (gftp_parse_command_line) - unified this function so that it is consistent for all arguments. * lib/protocols.c (gftp_file_destroy) - fixed memory leak (utf8_file was not being freed)
author masneyb
date Sun, 04 Jan 2004 17:26:50 +0000
parents 532eb171d5c2
children 7cb3327f96f7
line wrap: on
line diff
--- a/lib/misc.c	Sun Jan 04 17:23:58 2004 +0000
+++ b/lib/misc.c	Sun Jan 04 17:26:50 2004 +0000
@@ -388,17 +388,20 @@
     {
       if (strcmp (argv[0][1], "--help") == 0 || 
           strcmp (argv[0][1], "-h") == 0)
-	gftp_usage ();
+        {
+          gftp_usage ();
+          exit (0);
+        }
       else if (strcmp (argv[0][1], "--version") == 0 || 
                strcmp (argv[0][1], "-v") == 0)
 	{
-	  printf ("%s\n", gftp_version);
-	  exit (0);
+          printf ("%s\n", gftp_version);
+          exit (0);
 	}
       else if (strcmp (argv[0][1], "--info") == 0)
 	{
           gftp_info ();
-	  exit (0);
+          exit (0);
 	}
     }
   return (0);