[Adduser-devel] argh

Stephen Gran sgran at debian.org
Wed Apr 26 13:44:07 UTC 2006


This one time, at band camp, Marc Haber said:
> On Wed, Apr 26, 2006 at 11:55:58AM +0100, Stephen Gran wrote:
> 
> How about
> "usage() unless ( GetOptions... )"?

Changing it to
&usage, exit 1 unless ( GetOptions... 

> > I will run some further tests to be sure.

Gives me this output:

steve at gashuffer:~/adduser-3.86$ ./adduser --foo
Unknown option: foo
adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]
[--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID]
[--disabled-password] [--disabled-login] user
   Add a normal user

adduser --system [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]
[--gecos GECOS] [--group | --ingroup GROUP | --gid ID] [--disabled-password]
[--disabled-login] user
   Add a system user

adduser --group [--gid ID] group
addgroup [--gid ID] group
   Add a user group

addgroup --system [--gid ID] group
   Add a system group

adduser user group
   Add an existing user to an existing group

Other options are [--quiet] [--force-badname] [--help] [--version] [--conf
FILE].
steve at gashuffer:~/adduser-3.86$ echo $?
1

Which seems right.

Thanks,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060426/d82a99ba/attachment.pgp


More information about the Adduser-devel mailing list