Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/pr Minor tweaks to usage:



details:   https://anonhg.NetBSD.org/src/rev/757147e4b652
branches:  trunk
changeset: 780631:757147e4b652
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Wed Aug 01 02:27:48 2012 +0000

description:
Minor tweaks to usage:
- Sort options to match pr(1) SYNOPSIS (suggested by wiz)
- Add missing -T timefmt option

diffstat:

 usr.bin/pr/pr.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 4eab598676cc -r 757147e4b652 usr.bin/pr/pr.c
--- a/usr.bin/pr/pr.c   Wed Aug 01 01:49:01 2012 +0000
+++ b/usr.bin/pr/pr.c   Wed Aug 01 02:27:48 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pr.c,v 1.23 2012/07/24 02:13:04 ginsbach Exp $ */
+/*     $NetBSD: pr.c,v 1.24 2012/08/01 02:27:48 ginsbach Exp $ */
 
 /*-
  * Copyright (c) 1991 Keith Muller.
@@ -45,7 +45,7 @@
 #if 0
 from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: pr.c,v 1.23 2012/07/24 02:13:04 ginsbach Exp $");
+__RCSID("$NetBSD: pr.c,v 1.24 2012/08/01 02:27:48 ginsbach Exp $");
 #endif
 #endif /* not lint */
 
@@ -1612,11 +1612,14 @@
 usage(void)
 {
        (void)fputs(
-        "usage: pr [+page] [-col] [-adFmrt] [-e[ch][gap]] [-h header]\n",errf);
+        "usage: pr [+page] [-col] [-adFfmprt] [-e[ch][gap]] [-h header]\n",
+                   errf);
        (void)fputs(
-        "          [-i[ch][gap]] [-l line] [-n[ch][width]] [-o offset]\n",errf);
+        "          [-i[ch][gap]] [-l line] [-n[ch][width]] [-o offset]\n",
+                   errf);
        (void)fputs(
-        "          [-s[ch]] [-w width] [-fp] [-] [file ...]\n", errf);
+        "          [-s[ch]] [-T timefmt] [-w width] [-] [file ...]\n",
+                   errf);
 }
 
 /*



Home | Main Index | Thread Index | Old Index