From 4bdac686eb9c82bde97dd63e5471dca2a823c2c5 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 6 Jan 2013 00:19:13 +0000 Subject: [PATCH] Sort options in man page SYNOPSIS and sync usage with it. Bump date. --- usr.bin/units/units.1 | 6 +++--- usr.bin/units/units.c | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/usr.bin/units/units.1 b/usr.bin/units/units.1 index f99dea6a34bf..a31f7758bee6 100644 --- a/usr.bin/units/units.1 +++ b/usr.bin/units/units.1 @@ -1,5 +1,5 @@ -.\" $NetBSD: units.1,v 1.19 2013/01/01 11:51:55 apb Exp $ -.Dd December 28, 2012 +.\" $NetBSD: units.1,v 1.20 2013/01/06 00:19:13 wiz Exp $ +.Dd January 6, 2013 .Dt UNITS 1 .Os .Sh NAME @@ -7,8 +7,8 @@ .Nd conversion program .Sh SYNOPSIS .Nm +.Op Fl Llqv .Op Fl f Ar filename -.Op Fl lLqv .Oo .Op Ar count .Ar from-unit to-unit diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c index a70c96b0d4a3..98dd24309949 100644 --- a/usr.bin/units/units.c +++ b/usr.bin/units/units.c @@ -1,4 +1,4 @@ -/* $NetBSD: units.c,v 1.23 2013/01/02 14:05:04 apb Exp $ */ +/* $NetBSD: units.c,v 1.24 2013/01/06 00:19:13 wiz Exp $ */ /* * units.c Copyright (c) 1993 by Adrian Mariano (adrian@cam.cornell.edu) @@ -794,8 +794,10 @@ static void usage(void) { fprintf(stderr, - "\nunits [-f unitsfile] [-q] [-v] [from-unit to-unit]\n"); + "\nunits [-Llqv] [-f filename] [[count] from-unit to-unit]\n"); fprintf(stderr, "\n -f specify units file\n"); + fprintf(stderr, " -L list units in standardized base units\n"); + fprintf(stderr, " -l list units\n"); fprintf(stderr, " -q suppress prompting (quiet)\n"); fprintf(stderr, " -v print version number\n"); exit(3);