|
|
|
@ -139,9 +139,9 @@ function main(){
|
|
|
|
case $cur in
|
|
|
|
case $cur in
|
|
|
|
# ARGS: print this help
|
|
|
|
# ARGS: print this help
|
|
|
|
-h|--help) echo "# ARGUMENTS:"; grep -A 1 '# ARGS:' "${BASH_SOURCE[0]}"; exit 0 ;;
|
|
|
|
-h|--help) echo "# ARGUMENTS:"; grep -A 1 '# ARGS:' "${BASH_SOURCE[0]}"; exit 0 ;;
|
|
|
|
# ARGS: dir containing gpg keyfiles
|
|
|
|
# ARGS: [optional] dir containing gpg keyfiles. defaults to git repo root, var: ${repo_root}
|
|
|
|
-k|--key|--keyfiles) keyfiles_dir="${2}"; shift ;;
|
|
|
|
-k|--key|--keyfiles) keyfiles_dir="${2}"; shift ;;
|
|
|
|
# ARGS: dir containing .sops.yaml (sops config file)
|
|
|
|
# ARGS: [optional] defines dir for sops config file (.sops.yaml), create if needed. defaults to git repo root, var: ${repo_root}
|
|
|
|
-c|--config_dir) sops_config_dir="${2}"; shift ;;
|
|
|
|
-c|--config_dir) sops_config_dir="${2}"; shift ;;
|
|
|
|
# ARGS: [optional] show list of groups and exit
|
|
|
|
# ARGS: [optional] show list of groups and exit
|
|
|
|
-lg|--list_groups) opt_list_groups=1 ;;
|
|
|
|
-lg|--list_groups) opt_list_groups=1 ;;
|
|
|
|
|