summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2007-11-17 21:01:22 +0000
committerru <ru@FreeBSD.org>2007-11-17 21:01:22 +0000
commit3371e726069eae60d9d0e25e51fc486cbe9f2e05 (patch)
tree28ddbcfac0a9a167898e535e2302f6fa9669d785
parent4a831eed3734fe77980e7b3e6223bfbb50f63de8 (diff)
downloadFreeBSD-src-3371e726069eae60d9d0e25e51fc486cbe9f2e05.zip
FreeBSD-src-3371e726069eae60d9d0e25e51fc486cbe9f2e05.tar.gz
Express in the usage() and SYNOPSIS that -F depends on -s, and
that -f and -i are exclusive.
-rw-r--r--bin/ln/ln.18
-rw-r--r--bin/ln/ln.c4
2 files changed, 8 insertions, 4 deletions
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);
}
OpenPOWER on IntegriCloud