aboutsummaryrefslogtreecommitdiff
path: root/sbin/devfs
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-03-08 23:58:10 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-03-08 23:58:10 +0000
commitc3e412c083332764a680da896e5d291821cc98bc (patch)
treef78dcf280245c1db47fcbcdd3ce3cea6b3f3ab1e /sbin/devfs
parent9d5228cd856554404e6bba8e0e0c62d822468e08 (diff)
downloadsrc-c3e412c083332764a680da896e5d291821cc98bc.tar.gz
src-c3e412c083332764a680da896e5d291821cc98bc.zip
sbin/devfs: clarify usage
- Note existence of -m option. - Note that -s applies to rule keyword, only, by adding usage text specifically for the `rule` and `ruleset` keywords. Don't go into any further detail in usage(..) -- it's best that one reads the manpage to get a better idea of how things work as there are a number of different option-specific keywords and arguments, as well as some rule grammar. MFC after: 1 week Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=314924
Diffstat (limited to 'sbin/devfs')
-rw-r--r--sbin/devfs/devfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/devfs/devfs.c b/sbin/devfs/devfs.c
index 0e7b66210121..bd6fea911ff0 100644
--- a/sbin/devfs/devfs.c
+++ b/sbin/devfs/devfs.c
@@ -225,6 +225,8 @@ void
usage(void)
{
- fprintf(stderr, "usage: devfs rule|ruleset arguments\n");
+ fprintf(stderr, "usage: %s\n%s\n",
+ "\tdevfs [-m mount-point] [-s ruleset] rule ...",
+ "\tdevfs [-m mount-point] ruleset ...");
exit(1);
}