Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit 949a25e

Browse files
authored
Update README.md
1 parent 3e90b67 commit 949a25e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ This is where you will configure the script options/flags. This is provided by a
6363

6464
The `SCRIPT_OPTS` is an array who's values are as follows: `<regex>:<varname>`
6565

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>`.
6767

6868
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.
6969

0 commit comments

Comments
 (0)