See the manpage for sysexits(3). Both should return EX_USAGE (64) in
this
case. You should only return EX_OK (0) if the command was successful.
If
you're spitting out usage text, return EX_USAGE.
or a multi-line usage (e.g. something like bsdlabel(1)):
kldfind [-qv] -c category ..
On Sun, May 21, 2006 at 02:28:29PM -0300, Ricardo A. Reis wrote:
>
> First about exit codes, when program is executed without options,
> how this must return ?
> kldunload and kldload not return the same exit codes,
>
>[EMAIL PROTECTED]:~/kldfind] # kldload
> usage: kldload [-v]
Hi all,
I corrected option implementation, now kldfind accept options in any
order
Changelog:
0.56: Corrected use of getopts,
Mupdated man with option and examples (is necessary re-view option
in pod2man for pre-formate string)
I've two questions,
First a
3 matches
Mail list logo