diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-08-04 15:30:07 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-08-04 15:30:07 +0000 |
commit | c9cf71d8a4cf0c86add4781d8d6ec95f9057d015 (patch) | |
tree | 1270913554fb54c0e4179d67176dff4ba8647d75 | |
parent | 684e23ff500ba255a73e30f59a65299e04836faa (diff) |
sort SYNOPSIS and usage(), format tweaks, by jmc@
-rw-r--r-- | usr.bin/tsort/tsort.1 | 17 | ||||
-rw-r--r-- | usr.bin/tsort/tsort.c | 4 |
2 files changed, 8 insertions, 13 deletions
diff --git a/usr.bin/tsort/tsort.1 b/usr.bin/tsort/tsort.1 index 3938b59422b..63850516e27 100644 --- a/usr.bin/tsort/tsort.1 +++ b/usr.bin/tsort/tsort.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tsort.1,v 1.15 2004/08/04 15:29:10 espie Exp $ +.\" $OpenBSD: tsort.1,v 1.16 2004/08/04 15:30:06 espie Exp $ .\" $NetBSD: tsort.1,v 1.6 1996/01/17 20:37:49 mycroft Exp $ .\" .\" Copyright (c) 1990, 1993, 1994 @@ -41,19 +41,14 @@ .Nd topological sort of a directed graph .Sh SYNOPSIS .Nm tsort -.Op Fl f +.Op Fl flqrvw .Op Fl h Ar file -.Op Fl l -.Op Fl q -.Op Fl r -.Op Fl v -.Op Fl w .Op Ar file .Sh DESCRIPTION .Nm tsort takes a list of pairs of node names representing directed arcs in a graph and prints the nodes in topological order on standard output. -That is: the input describes a partial ordering relation, from which +That is, the input describes a partial ordering relation, from which .Nm computes a total order compatible with this partial ordering. .Pp @@ -102,7 +97,7 @@ had to break. .El .Sh EXAMPLES Faced with the input: -.Bd -literal +.Bd -literal -offset indent a b b c b d @@ -112,7 +107,7 @@ c e .Pp .Nm outputs: -.Bd -literal +.Bd -literal -offset indent a b c @@ -123,7 +118,7 @@ f .Pp which is one total ordering compatible with the individual relations. There is no unicity, another compatible total ordering would be: -.Bd -literal +.Bd -literal -offset indent a b c diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c index 383e16d8cf6..5caaa6ee4c0 100644 --- a/usr.bin/tsort/tsort.c +++ b/usr.bin/tsort/tsort.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tsort.c,v 1.17 2003/09/22 23:39:24 drahn Exp $ */ +/* $OpenBSD: tsort.c,v 1.18 2004/08/04 15:30:06 espie Exp $ */ /* ex:ts=8 sw=4: */ @@ -980,6 +980,6 @@ extern char *__progname; static void usage(void) { - fprintf(stderr, "Usage: %s [-h file] [-flqrvw] [file]\n", __progname); + fprintf(stderr, "Usage: %s [-flqrvw] [-h file] [file]\n", __progname); exit(EX_USAGE); } |