Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalwareutils.git;a=commitdiff;h=457640e3de78fa5c54e039480502eaf21c53190c

commit 457640e3de78fa5c54e039480502eaf21c53190c
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Mon Nov 5 13:07:42 2007 +0100

netconfig/usage(): remove duplicated help

diff --git a/netconfig/netconfig.c b/netconfig/netconfig.c
index 63c8e22..61f88bc 100644
--- a/netconfig/netconfig.c
+++ b/netconfig/netconfig.c
@@ -43,15 +43,9 @@ int nco_lodown = 0;

fwnet_profile_t *sigprof;

-int usage(const char *myname)
+int usage()
{
-       printf(_("usage: %s [options] start|stop|restart|status|list 
[interface]\n"), myname);
-       printf(_("       %s [options] [profile] [interface]\n"), myname);
-       printf(_("-h | --help              This help.\n"));
-       printf(_("-f | --fast              Fast mode, used by the setup.\n"));
-       printf(_("     --dry-run           Do not actually perform the 
operation.\n"));
-       printf(_("     --loup              Bring up the loopback 
interface.\n"));
-       printf(_("     --lodown            Bring down the loopback 
interface.\n"));
+       system("man netconfig");
return(0);
}

@@ -267,7 +261,7 @@ int run(int argc, char **argv)
fwutil_i18ninit(__FILE__);
if(nco_usage)
{
-               usage(argv[0]);
+               usage();
return(0);
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to