diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2007-03-15 22:33:23 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2007-03-15 22:33:23 +0000 |
commit | 673d3d57a3f7f10b2a102f92660de68fdc1bf0e5 (patch) | |
tree | 1be3608257ca1a23cd6bc187611d8fdf7c6b73d1 | |
parent | df08a9be7c45809f2e2d3118fc9eab9fa681016c (diff) |
simplify synopsis/usage() and sort options;
from Igor Sobrado
-rw-r--r-- | usr.sbin/tokeninit/tokeninit.8 | 11 | ||||
-rw-r--r-- | usr.sbin/tokeninit/tokeninit.c | 4 |
2 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/tokeninit/tokeninit.8 b/usr.sbin/tokeninit/tokeninit.8 index 33336f1d075..551e1bb0b29 100644 --- a/usr.sbin/tokeninit/tokeninit.8 +++ b/usr.sbin/tokeninit/tokeninit.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tokeninit.8,v 1.7 2003/11/26 20:25:27 jmc Exp $ +.\" $OpenBSD: tokeninit.8,v 1.8 2007/03/15 22:33:22 jmc Exp $ .\" .\" Copyright (c) 1995 Migration Associates Corporation. All rights reserved. .\" @@ -42,12 +42,9 @@ .Nd "modify or add user in ActivCard, CRYPTOCard, or SNK-004 authentication system" .Sh SYNOPSIS .Nm tokeninit -.Op Fl f -.Op Fl h +.Op Fl fhsv .Op Fl m Ar mode -.Op Fl s -.Op Fl v -.Ar user_ID +.Ar user .Op Ar ... .Sh DESCRIPTION The @@ -99,7 +96,7 @@ Read the shared secret as a 16 digit hexadecimal integer rather than a sequence of 8 octets. This is not supported when invoked as .Nm snkinit . -.It Fl m +.It Fl m Ar mode Specify the input modes allowed for this user. Possible modes are decimal (dec), hexadecimal (hex), phonebook (phone), and reduced-input (rim). diff --git a/usr.sbin/tokeninit/tokeninit.c b/usr.sbin/tokeninit/tokeninit.c index 872cd63c921..ba8f490b798 100644 --- a/usr.sbin/tokeninit/tokeninit.c +++ b/usr.sbin/tokeninit/tokeninit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tokeninit.c,v 1.5 2002/05/27 06:33:51 deraadt Exp $ */ +/* $OpenBSD: tokeninit.c,v 1.6 2007/03/15 22:33:22 jmc Exp $ */ /*- * Copyright (c) 1995 Migration Associates Corp. All Rights Reserved @@ -115,7 +115,7 @@ main(int argc, char **argv) break; default: fprintf(stderr, - "Usage: %sinit [-f%ssv] username [ username ... ]\n", + "usage: %sinit [-f%ssv] [-m mode] user [...]\n", tt->name, (tt->options & TOKEN_HEXINIT) ? "h" : ""); exit(1); } |