aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-01 21:56:07 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-10-01 21:56:07 +0300
commit179bf25f249a8ee7456e9f3e47f930014b0e5f90 (patch)
tree598f75c13a2c88c797459a5d17e37c25fd6e9cbc /doc
parentddb280198adcada561b8e72c79b92d50a05b3e78 (diff)
downloadeclat-179bf25f249a8ee7456e9f3e47f930014b0e5f90.tar.gz
eclat-179bf25f249a8ee7456e9f3e47f930014b0e5f90.tar.bz2
Improve command matching
* src/eclat.c (name_matches): New function. (find_command_name): Use it. (main): Handle --match-commands. * src/cmdline.opt: New option: --match-commands. * doc/eclat.1: Document new command matching algorithm.
Diffstat (limited to 'doc')
-rw-r--r--doc/eclat.118
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/eclat.1 b/doc/eclat.1
index 9481e0b..ad17cb8 100644
--- a/doc/eclat.1
+++ b/doc/eclat.1
@@ -156,6 +156,18 @@ commands are implemented:
.PP
Each command understands a \fB\-\-help\fR (\fB\-h\fR) command line
option which outputs a terse summary on using this particular command.
+.PP
+Any non-ambiguous abbreviation can be used in place of
+.BR command .
+Each segment (i.e. the sequence of characters delimited by dashes),
+can be abbreviated independently. For example, \fBd-t\fR matches
+\fBdescribe-tags\fR, whereas \fBd-i\fR matches two command names:
+\fBdescribe-instance-status\fR and \fBdescribe-instances\fR.
+.PP
+If an ambiguous abbreviation is supplied,
+.B eclat
+will print a list of matching command names on the standard error and
+exit with the code 64 (see the section \fBEXIT CODES\fR).
.SH OPTIONS
.SS Selecting program mode
.TP
@@ -164,6 +176,12 @@ Preprocess configuration and exit.
.TP
\fB\-c\fR, \fB\-\-config\-file\fR=\fIFILE\fR
Use \fIFILE\fR instead of the default configuration.
+.TP
+\fB\-\-match\-commands\fR, \fB-m\fR
+Print matching command names and exit. This option is intended for
+use in completion facilities, such as Programmable Completion Builtins
+in
+.BR bash (1).
.SS Configuration and Format Selection
.TP
\fB\-t\fR, \fB\-\-lint\fR

Return to:

Send suggestions and report system problems to the System administrator.