From 673d3d57a3f7f10b2a102f92660de68fdc1bf0e5 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Thu, 15 Mar 2007 22:33:23 +0000 Subject: simplify synopsis/usage() and sort options; from Igor Sobrado --- usr.sbin/tokeninit/tokeninit.8 | 11 ++++------- usr.sbin/tokeninit/tokeninit.c | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'usr.sbin') 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); } -- cgit v1.2.3