diff options
author | João Marcos <marcospb19@hotmail.com> | 2020-09-10 20:32:54 -0300 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2021-05-31 21:51:18 -0400 |
commit | 4566882521b880274c510ef65d58995d0b049b6a (patch) | |
tree | b3bc4fab2b13ea1b8d152713a417e07555db7a47 /ci | |
parent | 12dd455ee9aa731acfeb0d2dfed568a0103cae73 (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-x | ci/test-complete | 4 |
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 )"} ) |