You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ This is where you will configure the script options/flags. This is provided by a
63
63
64
64
The `SCRIPT_OPTS` is an array who's values are as follows: `<regex>:<varname>`
65
65
66
-
The first part before the colon is a standard Regex to match against the given options, i.e. `(-d|--date)` will match either `-d` or `--date` — you can append as many patterns as you want using the OR operator `|`.
66
+
The first part before the colon is a standard Regex to match against the given options, i.e. `(-d|--date)` will match either `-d` or `--date` — you can append as many patterns as you want using the OR operator `|` and all of the patterns will be matched and mapped to the `<varname>`.
67
67
68
68
The second part after the colon is the key used as the variable name. This name will be exported as `OPTS_<varname>`, i.e. `OPTS_DATE` in the case of a date option.
0 commit comments