From f1843b15c306ca5f51dc80e64bf40c9ac77ef675 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 17 Jun 2005 12:02:00 +0000 Subject: [PATCH] - add -D to usage - use getprogname() - sort options (usage, synopsis and description) - add `Ar conf_file' to -f option (description) From Kouichirou Hiratsuka in PR/26532. --- usr.sbin/altq/altqd/altqd.8 | 28 ++++++++++++++-------------- usr.sbin/altq/altqd/altqd.c | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/usr.sbin/altq/altqd/altqd.8 b/usr.sbin/altq/altqd/altqd.8 index 388c1302548a..34f5f8935ccf 100644 --- a/usr.sbin/altq/altqd/altqd.8 +++ b/usr.sbin/altq/altqd/altqd.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: altqd.8,v 1.8 2003/06/27 22:56:37 wiz Exp $ +.\" $NetBSD: altqd.8,v 1.9 2005/06/17 12:02:00 peter Exp $ .\" $KAME: altqd.8,v 1.9 2002/01/23 06:56:27 itojun Exp $ .\" .\" Copyright (C) 2000 @@ -33,7 +33,7 @@ .Nd ALTQ daemon .Sh SYNOPSIS .Nm altqd -.Op Fl dvD +.Op Fl Ddv .Op Fl f Ar conf_file .Sh DESCRIPTION .Nm @@ -50,22 +50,22 @@ and the signal SIGHUP will restart .Pp The following options are available: .Bl -tag -width Fl -.It Fl f -Specify a configuration file to read instead of the default. -The default file is -.Pa /etc/altq.conf . -.It Fl d -Debug mode. -.Nm -does not detach and goes into the command mode. -.It Fl v -Print debugging information. -This option implies -.Fl d . .It Fl D Dummy mode. .Nm does not issue altq system calls. +.It Fl d +Debug mode. +.Nm +does not detach and goes into the command mode. +.It Fl f Ar conf_file +Specify a configuration file to read instead of the default. +The default file is +.Pa /etc/altq.conf . +.It Fl v +Print debugging information. +This option implies +.Fl d . .El .Sh COMMANDS When diff --git a/usr.sbin/altq/altqd/altqd.c b/usr.sbin/altq/altqd/altqd.c index a9217fea0e62..c0b4682212be 100644 --- a/usr.sbin/altq/altqd/altqd.c +++ b/usr.sbin/altq/altqd/altqd.c @@ -1,4 +1,4 @@ -/* $NetBSD: altqd.c,v 1.7 2002/03/05 04:11:51 itojun Exp $ */ +/* $NetBSD: altqd.c,v 1.8 2005/06/17 12:02:00 peter Exp $ */ /* $KAME: altqd.c,v 1.10 2002/02/20 10:42:26 kjc Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -85,7 +85,7 @@ static void sig_handler(int); static void usage(void) { - fprintf(stderr, "usage: altqd [-vd] [-f config]\n"); + fprintf(stderr, "usage: %s [-Ddv] [-f config]\n", getprogname()); exit(1); }