summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-12-27 09:38:09 -0700
committerEric Blake <ebb9@byu.net>2008-12-27 10:32:58 -0700
commit921feefb12e7f93c0925188b9b11f2e1fd775e33 (patch)
treedf920f1f5ca7b472297185cef6b29a03378b04d9 /doc
parent0c65638b0fe521a47e72f318edfb12c5b3b850f5 (diff)
downloadcoreutils-921feefb12e7f93c0925188b9b11f2e1fd775e33.tar.xz
doc: mention long option abbreviation
* doc/coreutils.texi (Common options): Give example of abbreviating options. * THANKS: Update. Reported by Adam Jimerson.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 387377345..c2713eb91 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -673,8 +673,15 @@ program description. For example, the @command{env} command's options
must appear before its operands, since in some cases the operands
specify a command that itself contains options.
+Most programs that accept long options recognize unambiguous
+abbreviations of those options. For example, @samp{rmdir
+--ignore-fail-on-non-empty} can be invoked as @samp{rmdir
+--ignore-fail} or even @samp{rmdir --i}. Ambiguous options, such as
+@samp{ls --h}, are identified as such.
+
Some of these programs recognize the @option{--help} and @option{--version}
-options only when one of them is the sole command line argument.
+options only when one of them is the sole command line argument. For
+these programs, abbreviations of the long options are not recognized.
@table @samp