From 6ae6d3340ac8335cf0acd5587e8bd8fa075656ba Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 10 Jun 1996 16:12:43 +0000 Subject: nitpicks. Reviewed by: phk Submitted by: "Philippe Charnier" --- usr.bin/tsort/tsort.1 | 3 +++ usr.bin/tsort/tsort.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/tsort/tsort.1 b/usr.bin/tsort/tsort.1 index f3eb74b..fb6fa32 100644 --- a/usr.bin/tsort/tsort.1 +++ b/usr.bin/tsort/tsort.1 @@ -42,6 +42,7 @@ .Nd topological sort of a directed graph .Sh SYNOPSIS .Nm tsort +.Op Fl d .Op Fl l .Op Ar file .Sh DESCRIPTION @@ -66,6 +67,8 @@ Cycles are reported on standard error. .Pp The options are as follows: .Bl -tag -width Ds +.It Fl d +Turn on debugging. .It Fl l Search for and display the longest cycle. Can take a very long time. diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c index c1fc8e8..0ad452c 100644 --- a/usr.bin/tsort/tsort.c +++ b/usr.bin/tsort/tsort.c @@ -32,6 +32,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $Id$ */ #ifndef lint @@ -424,6 +426,6 @@ find_cycle(from, to, longest_len, depth) void usage() { - (void)fprintf(stderr, "usage: tsort [-l] [file]\n"); + (void)fprintf(stderr, "usage: tsort [-dl] [file]\n"); exit(1); } -- cgit v1.1