summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorJoão Marcos <marcospb19@hotmail.com>2020-09-10 20:32:54 -0300
committerAndrew Gallant <jamslam@gmail.com>2021-05-31 21:51:18 -0400
commit4566882521b880274c510ef65d58995d0b049b6a (patch)
treeb3bc4fab2b13ea1b8d152713a417e07555db7a47 /ci
parent12dd455ee9aa731acfeb0d2dfed568a0103cae73 (diff)
cli: add -. as short option for --hidden
This is somewhat non-standard, but it seems nice on the surface: short flag names are in short supply, --hidden is probably somewhat common and -. has an obvious connection with how hidden files are named on Unix. Closes #1680
Diffstat (limited to 'ci')
-rwxr-xr-xci/test-complete4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/test-complete b/ci/test-complete
index ff11c802..3143cc49 100755
--- a/ci/test-complete
+++ b/ci/test-complete
@@ -44,8 +44,8 @@ main() {
# Occasionally we may have to handle some manually, however
help_args=( ${(f)"$(
$rg --help |
- $rg -i -- '^\s+--?[a-z0-9]|--[a-z]' |
- $rg -ior '$1' -- $'[\t /\"\'`.,](-[a-z0-9]|--[a-z0-9-]+)\\b' |
+ $rg -i -- '^\s+--?[a-z0-9.]|--[a-z]' |
+ $rg -ior '$1' -- $'[\t /\"\'`.,](-[a-z0-9.]|--[a-z0-9-]+)(,|\\b)' |
$rg -v -- --print0 | # False positives
sort -u
)"} )