Allow 'contains' builtin to return index

Add an option -i/--index to the contains builtin to print the index
of first coincidence.
This commit is contained in:
maxfl
2012-07-08 18:53:12 +08:00
committed by ridiculousfish
parent 176a3913aa
commit 0c03b6ddc7
2 changed files with 11 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
\subsection contains-description Description
- \c -i or \c --index print the the word index
- \c -h or \c --help display this message
Test if the set VALUES contains the string KEY. Return status is 0 if