From: henning Date: Wed, 29 Apr 2015 16:56:31 +0000 (+0000) Subject: some fine-tuning in SYNOPSIS, usage, and order of options, with jmc X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2c6e8a171f0e34fd69c90576c144c63d400afa64;p=openbsd some fine-tuning in SYNOPSIS, usage, and order of options, with jmc --- diff --git a/sbin/disklabel/disklabel.8 b/sbin/disklabel/disklabel.8 index b73c1f81eab..46d1749f88d 100644 --- a/sbin/disklabel/disklabel.8 +++ b/sbin/disklabel/disklabel.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: disklabel.8,v 1.113 2015/04/29 09:58:16 henning Exp $ +.\" $OpenBSD: disklabel.8,v 1.114 2015/04/29 16:56:31 henning Exp $ .\" $NetBSD: disklabel.8,v 1.9 1995/03/18 14:54:38 cgd Exp $ .\" .\" Copyright (c) 1987, 1988, 1991, 1993 @@ -42,8 +42,8 @@ .Sh SYNOPSIS .Nm disklabel .Op Fl Acdtv -.Op Fl T Ar file .Op Fl h | p Ar unit +.Op Fl T Ar file .Ar disk .Nm disklabel .Fl w @@ -59,8 +59,8 @@ .Nm disklabel .Fl E .Op Fl Acdnv -.Op Fl T Ar file .Op Fl F Ns | Ns Fl f Ar file +.Op Fl T Ar file .Ar disk .Nm disklabel .Fl R @@ -196,10 +196,6 @@ Restore a disk label that was formatted in a prior operation and saved in an .Tn ASCII file. -.It Fl t -Format the label as a -.Xr disktab 5 -entry. .It Fl T Ar file Read the template for automatic allocation from .Ar file @@ -207,6 +203,10 @@ instead of using the builtin one. See .Sx AUTOMATIC DISK ALLOCATION below for the format. +.It Fl t +Format the label as a +.Xr disktab 5 +entry. .It Fl v Print additional information during operation .Pq verbose mode . diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index d9a6226e776..7b7e5a00965 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.200 2015/04/29 09:58:16 henning Exp $ */ +/* $OpenBSD: disklabel.c,v 1.201 2015/04/29 16:56:31 henning Exp $ */ /* * Copyright (c) 1987, 1993 @@ -1474,13 +1474,13 @@ void usage(void) { fprintf(stderr, - "usage: disklabel [-Acdtv] [-h | -p unit] disk\t\t(read)\n"); + "usage: disklabel [-Acdtv] [-h | -p unit] [-T file] disk\t(read)\n"); fprintf(stderr, " disklabel -w [-Acdnv] [-T file] disk disktype [packid]\t(write)\n"); fprintf(stderr, " disklabel -e [-Acdnv] [-T file] disk\t\t\t(edit)\n"); fprintf(stderr, - " disklabel -E [-Acdnv] [-T file] [-F|-f file] disk\t(simple editor)" + " disklabel -E [-Acdnv] [-F|-f file] [-T file] disk\t(simple editor)" "\n"); fprintf(stderr, " disklabel -R [-nv] [-F|-f file] disk protofile\t\t(restore)\n\n");