From: Kevin Day Date: Sun, 15 May 2022 23:58:42 +0000 (-0500) Subject: Update: New parameter (-W/--wrap) for iki_read. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=1c8e64b65cebd20ef5160e1d09ed5fc36b78a05a;p=kevux.org-website Update: New parameter (-W/--wrap) for iki_read. --- diff --git a/documentation/iki_read.html b/documentation/iki_read.html index 79af669..a9ffa03 100644 --- a/documentation/iki_read.html +++ b/documentation/iki_read.html @@ -219,7 +219,7 @@ -c --content - Print the variable content (default). + Print the variable value (aka: content) (default). -L @@ -246,6 +246,11 @@ --substitute Substitute the variable for the given name and matching content value with the given string. + + -W + --wrap + Prepend and append strings for the given name. + @@ -278,12 +283,29 @@ The vocabulary and replacement are case-sensitive and must exactly match.

+ The -W/--wrap option requires 3 additional parameters: <vocabulary> <before> <after>. +

+
+
+
vocabulary
The name of the vocabulary whose content is to be wrapped.
+
+
+
before
The string to prepend.
+
+
+
after
The string to append.
+
+
+

The difference between -r/--replace and -s/--substitute is that the -r/--replace option substitutes all matching vocabulary names and the -s/--substitute option substitutes all matching vocabulary names that must also have the given matching content.

The -s/--substitute option takes priority over the -r/--replace option when matching the same variable.

+ The -W/--wrap option is ignored when the -s/--substitute option is matching the same variable. +

+

The default behavior is to only display content portion of the IKI variable.