From d3e1da20484f8073fee691f1b2fd51354c1ceb7b Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 23 Dec 2013 20:20:46 +0000 Subject: [PATCH] MFC r259058,r259060: Remove -q from usage. Document -q and --quiet as discouraged compatibility option. git-svn-id: svn://svn.freebsd.org/base/stable/10@259785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/bc/bc.1 | 12 ++++++++++-- usr.bin/bc/bc.y | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/usr.bin/bc/bc.1 b/usr.bin/bc/bc.1 index 4f071e00c..0592acda0 100644 --- a/usr.bin/bc/bc.1 +++ b/usr.bin/bc/bc.1 @@ -35,7 +35,7 @@ .\" .\" @(#)bc.1 6.8 (Berkeley) 8/8/91 .\" -.Dd January 22, 2010 +.Dd December 6, 2013 .Dt BC 1 .Os .Sh NAME @@ -43,7 +43,7 @@ .Nd arbitrary-precision arithmetic language and calculator .Sh SYNOPSIS .Nm bc -.Op Fl chlqv +.Op Fl chlv .Op Fl e Ar expression .Op Ar file ... .Sh DESCRIPTION @@ -349,6 +349,14 @@ math library, read when the .Fl l option is specified on the command line. .El +.Sh COMPATIBILITY +The +.Fl q +and +.Fl Fl quiet +options are no-ops for compatibility with some other implementations of +.Nm +and their use is discouraged. .Sh SEE ALSO .Xr dc 1 .Pp diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y index a802f5a3e..a819e3f51 100644 --- a/usr.bin/bc/bc.y +++ b/usr.bin/bc/bc.y @@ -1023,7 +1023,7 @@ static void usage(void) { - fprintf(stderr, "usage: %s [-chlqv] [-e expression] [file ...]\n", + fprintf(stderr, "usage: %s [-chlv] [-e expression] [file ...]\n", __progname); exit(1); } -- 2.45.0