summaryrefslogtreecommitdiff
path: root/usr.bin/tsort
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1996-06-10 16:12:43 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1996-06-10 16:12:43 +0000
commit8cd6893074819b6a537e42ecfa98a51508c4cbb7 (patch)
tree9587fe215aaa3ddbd29878d9201e9ab7c116b4b3 /usr.bin/tsort
parentf2eff4c0abb73783015932bb06d257e2a161ea7f (diff)
downloadsrc-test-8cd6893074819b6a537e42ecfa98a51508c4cbb7.tar.gz
src-test-8cd6893074819b6a537e42ecfa98a51508c4cbb7.zip
nitpicks.
Reviewed by: phk Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
Notes
Notes: svn path=/head/; revision=16281
Diffstat (limited to 'usr.bin/tsort')
-rw-r--r--usr.bin/tsort/tsort.13
-rw-r--r--usr.bin/tsort/tsort.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/tsort/tsort.1 b/usr.bin/tsort/tsort.1
index f3eb74b710205..fb6fa32812acb 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 c1fc8e81ee3cb..0ad452cbe86f5 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);
}