Ah, good, you've followed the -L | --use-syslog pattern I created.  It's one that I 
think serves users the best (have the long opt with not argument use some reasonable 
value and then accept other values if appropriate...)

-----Burton



---------- Original Message ----------------------------------
From: Dennis Schoen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Mon, 27 May 2002 15:29:21 +0200

>On Mon, May 27, 2002 at 08:24:18AM -0500, Burton M. Strauss III wrote:
>> Dennis:
>> 
>> Be very careful with optional arguments.  I've found that to use optarg, you
>> MUST use the =,
>> --set-admin-password=xxx.   If the argument is REQUIRED, then it parses it
>> ok without.  Take a look at the comments re --use-syslog
>
>Yes I already noticed that. I'm nearly done with the patch - just
>needs a bit cleanup/docu.
>
>We have then:
>
>"-A": takes no argument and asks the user for the admin password
>"--set-admin-password": takes an optional argument as password.
>                        and does the same as "-A" when called
>                        without argument.
>
>// Dennis
>_______________________________________________
>Ntop-dev mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop-dev
>


__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
             http://www.doteasy.com
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to