From 3371e726069eae60d9d0e25e51fc486cbe9f2e05 Mon Sep 17 00:00:00 2001 From: ru Date: Sat, 17 Nov 2007 21:01:22 +0000 Subject: Express in the usage() and SYNOPSIS that -F depends on -s, and that -f and -i are exclusive. --- bin/ln/ln.1 | 8 ++++++-- bin/ln/ln.c | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'bin/ln') diff --git a/bin/ln/ln.1 b/bin/ln/ln.1 index 4c17dc1..e6ac24a 100644 --- a/bin/ln/ln.1 +++ b/bin/ln/ln.1 @@ -41,11 +41,15 @@ .Nd make links .Sh SYNOPSIS .Nm -.Op Fl Ffhinsv +.Op Fl s Op Fl F +.Op Fl f | i +.Op Fl hnv .Ar source_file .Op Ar target_file .Nm -.Op Fl Ffhinsv +.Op Fl s Op Fl F +.Op Fl f | i +.Op Fl hnv .Ar source_file ... .Ar target_dir .Nm link diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 12d37bf..d164c76 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -254,8 +254,8 @@ void usage(void) { (void)fprintf(stderr, "%s\n%s\n%s\n", - "usage: ln [-Ffhinsv] source_file [target_file]", - " ln [-Ffhinsv] source_file ... target_dir", + "usage: ln [-s [-F]] [-f | -i] [-hnv] source_file [target_file]", + " ln [-s [-F]] [-f | -i] [-hnv] source_file ... target_dir", " link source_file target_file"); exit(1); } -- cgit v1.1