summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-06-10 16:12:43 +0000
committerphk <phk@FreeBSD.org>1996-06-10 16:12:43 +0000
commit6ae6d3340ac8335cf0acd5587e8bd8fa075656ba (patch)
tree9587fe215aaa3ddbd29878d9201e9ab7c116b4b3 /usr.bin
parent0c2d3dd217d207e02f270f26d00810f6d894925d (diff)
downloadFreeBSD-src-6ae6d3340ac8335cf0acd5587e8bd8fa075656ba.zip
FreeBSD-src-6ae6d3340ac8335cf0acd5587e8bd8fa075656ba.tar.gz
nitpicks.
Reviewed by: phk Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
Diffstat (limited to 'usr.bin')
-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 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);
}
OpenPOWER on IntegriCloud