Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2017 23:58:10 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314924 - head/sbin/devfs
Message-ID:  <201703082358.v28NwAF2025230@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Mar  8 23:58:10 2017
New Revision: 314924
URL: https://svnweb.freebsd.org/changeset/base/314924

Log:
  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

Modified:
  head/sbin/devfs/devfs.c

Modified: head/sbin/devfs/devfs.c
==============================================================================
--- head/sbin/devfs/devfs.c	Wed Mar  8 22:49:22 2017	(r314923)
+++ head/sbin/devfs/devfs.c	Wed Mar  8 23:58:10 2017	(r314924)
@@ -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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703082358.v28NwAF2025230>