diff --git a/share/completions/abook.fish b/share/completions/abook.fish index ea8c40e1e..0aee8b00f 100644 --- a/share/completions/abook.fish +++ b/share/completions/abook.fish @@ -33,7 +33,7 @@ complete -c abook -l add-email -d 'Read email message from stdin and add the sen complete -c abook -l add-email-quiet -d 'Same as --add-email. Without confirmation' complete -c abook -l convert -d 'Convert address book files' -set -l convert 'contains -- --convert (commandline -po)' +set -l convert 'contains -- --convert (commandline -px)' complete -c abook -l informat -d 'Input file format' -xa '(__fish_complete_abook_formats in)' -n $convert complete -c abook -l outformat -d 'Output file format' -xa '(__fish_complete_abook_formats out)' -n $convert complete -c abook -l infile -d 'Input file (default: stdin)' -r -n $convert diff --git a/share/completions/adb.fish b/share/completions/adb.fish index a1465809d..4f050ba7a 100644 --- a/share/completions/adb.fish +++ b/share/completions/adb.fish @@ -1,7 +1,7 @@ # Completions for Android adb command function __fish_adb_no_subcommand -d 'Test if adb has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i connect disconnect devices push pull sync shell emu logcat install uninstall jdwp forward bugreport backup restore version help start-server kill-server remount reboot get-state get-serialno get-devpath status-window root usb tcpip ppp sideload reconnect unroot exec-out return 1 end @@ -25,7 +25,7 @@ end function __fish_adb_run_command -d 'Runs adb with any -s parameters already given on the command line' set -l sopt set -l sopt_is_next - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] for i in $cmd if test -n "$sopt_is_next" diff --git a/share/completions/ant.fish b/share/completions/ant.fish index 5cb5eab98..7d6f8a484 100644 --- a/share/completions/ant.fish +++ b/share/completions/ant.fish @@ -2,7 +2,7 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml and imported files" function __get_buildfile -d "Get a buildfile that will be used by ant" - set -l tokens $argv # tokens from 'commandline -opc' + set -l tokens $argv # tokens from 'commandline -xpc' set -l prev $tokens[1] set -l buildfile "build.xml" for token in $argv[2..-1] @@ -56,7 +56,7 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml an end # completion for ant targets -complete -x -c ant -a "(__fish_complete_ant_targets (commandline -opc))" +complete -x -c ant -a "(__fish_complete_ant_targets (commandline -xpc))" # Script Options: complete -f -c ant -l help -l h -d 'print help message and ant help' diff --git a/share/completions/apm.fish b/share/completions/apm.fish index 75dcc8d67..9111ffb25 100644 --- a/share/completions/apm.fish +++ b/share/completions/apm.fish @@ -1,6 +1,6 @@ # Returns exit code of 0 if apm hasn't received a command yet, e.g. `config` function __fish_apm_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 else if test (count $cmd) -gt 1 @@ -21,7 +21,7 @@ end # Returns exit code of 0 if any command (argv[1..-1]) appears once, ignores flags. function __fish_apm_using_command set -l commands $argv - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 set -l command_seen_once 1 for c in $cmd[2..-1] @@ -50,7 +50,7 @@ end # Check if `commandline` contains a set of subcommands function __fish_apm_includes_subcommand - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) for subcommand in $argv if contains $subcommand $cmd return 0 diff --git a/share/completions/apt-cache.fish b/share/completions/apt-cache.fish index 2e44de37d..90f3cc4a2 100644 --- a/share/completions/apt-cache.fish +++ b/share/completions/apt-cache.fish @@ -30,7 +30,7 @@ complete -r -c apt-cache -s c -l config-file -d "Specify config file" complete -x -c apt-cache -s o -l option -d "Specify options" function __fish_apt-cache_use_package -d 'Test if apt command should have packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i contains show showpkg showsrc depends rdepends dotty policy return 0 end diff --git a/share/completions/apt-get.fish b/share/completions/apt-get.fish index 1889504d0..dafafbaa2 100644 --- a/share/completions/apt-get.fish +++ b/share/completions/apt-get.fish @@ -1,7 +1,7 @@ #completion for apt-get function __fish_apt_no_subcommand -d 'Test if apt has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i update upgrade dselect-upgrade dist-upgrade install remove purge source build-dep check clean autoclean changelog return 1 end @@ -10,7 +10,7 @@ function __fish_apt_no_subcommand -d 'Test if apt has yet to be given the subcom end function __fish_apt_use_package -d 'Test if apt command should have packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i contains install remove purge build-dep changelog return 0 end diff --git a/share/completions/apt-mark.fish b/share/completions/apt-mark.fish index 48b4da6d9..7b99df02a 100644 --- a/share/completions/apt-mark.fish +++ b/share/completions/apt-mark.fish @@ -1,7 +1,7 @@ #completion for apt-mark function __fish_apt_no_subcommand -d 'Test if apt has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i auto manual hold unhold showauto showmanual showhold return 1 end @@ -10,7 +10,7 @@ function __fish_apt_no_subcommand -d 'Test if apt has yet to be given the subcom end function __fish_apt_use_package -d 'Test if apt command should have packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i contains auto manual hold unhold return 0 end diff --git a/share/completions/aptitude.fish b/share/completions/aptitude.fish index 956c3ec05..b5f78210a 100644 --- a/share/completions/aptitude.fish +++ b/share/completions/aptitude.fish @@ -1,7 +1,7 @@ #completion for aptitude function __fish_apt_no_subcommand -d 'Test if aptitude has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i autoclean clean forget-new keep-all update safe-upgrade changelog full-upgrade download forbid-version hold install keep markauto purge reinstall remove show unhold unmarkauto search help return 1 end @@ -10,7 +10,7 @@ function __fish_apt_no_subcommand -d 'Test if aptitude has yet to be given the s end function __fish_apt_use_package -d 'Test if aptitude command should have packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i changelog full-upgrade download forbid-version hold install keep-all markauto purge reinstall remove show unhold unmarkauto return 0 end diff --git a/share/completions/arc.fish b/share/completions/arc.fish index a100614eb..43cd2de5e 100644 --- a/share/completions/arc.fish +++ b/share/completions/arc.fish @@ -1,7 +1,7 @@ # fish completion for arc function __fish_arc_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if not set -q cmd[2] return 0 else diff --git a/share/completions/argparse.fish b/share/completions/argparse.fish index 59fefeea9..9678533c0 100644 --- a/share/completions/argparse.fish +++ b/share/completions/argparse.fish @@ -1,5 +1,5 @@ function __fish_argparse_exclusive_args --description 'Helper function to list unused options' - set --local all_tokens (commandline --tokenize) + set --local all_tokens (commandline --expand-tokens) set --erase all_tokens[1] set --local current_token (commandline --current-token) diff --git a/share/completions/aws.fish b/share/completions/aws.fish index 4e6c7dfd0..f888670a9 100644 --- a/share/completions/aws.fish +++ b/share/completions/aws.fish @@ -28,7 +28,7 @@ end # This accounts for things like `aws --debug s3 foo ... s3://...` function __s3_cmd_in set -l is_s3 0 - set -l tokens (commandline -co) + set -l tokens (commandline -cx) for token in $tokens[2..-1] # Ignore switches everywhere if string match -qr -- "^--" $token diff --git a/share/completions/bind.fish b/share/completions/bind.fish index 1d7f166f7..ec4fb172d 100644 --- a/share/completions/bind.fish +++ b/share/completions/bind.fish @@ -1,7 +1,7 @@ function __fish_bind_test1 set -l args set -l use_keys no - for i in (commandline -poc) + for i in (commandline -pxc) switch $i case -k --k --ke --key set use_keys yes @@ -25,7 +25,7 @@ end function __fish_bind_test2 set -l args - for i in (commandline -poc) + for i in (commandline -pxc) switch $i case "-*" diff --git a/share/completions/blender.fish b/share/completions/blender.fish index 5ebf31fed..431f07446 100644 --- a/share/completions/blender.fish +++ b/share/completions/blender.fish @@ -6,7 +6,7 @@ function __blender_echo_input_file_name # Find last argument ending in .blend (or .blend1, etc.) # This is because a Blender invocation can open multiple blend file # sequentially, so we need to find the last one up to this point. - set -l path (commandline -poc | + set -l path (commandline -pxc | string match -r '.*\\.blend[0-9]*$' | tail --lines=1) echo $path diff --git a/share/completions/builtin.fish b/share/completions/builtin.fish index dd463a23a..112cd64db 100644 --- a/share/completions/builtin.fish +++ b/share/completions/builtin.fish @@ -1,5 +1,5 @@ -complete -c builtin -n 'test (count (commandline -opc)) -eq 1' -s h -l help -d 'Display help and exit' -complete -c builtin -n 'test (count (commandline -opc)) -eq 1' -s n -l names -d 'Print names of all existing builtins' -complete -c builtin -n 'test (count (commandline -opc)) -eq 1' -s q -l query -d 'Tests if builtin exists' -complete -c builtin -n 'test (count (commandline -opc)) -eq 1' -xa '(builtin -n)' -complete -c builtin -n 'test (count (commandline -opc)) -ge 2' -xa '(__fish_complete_subcommand)' +complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit' +complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -s n -l names -d 'Print names of all existing builtins' +complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -s q -l query -d 'Tests if builtin exists' +complete -c builtin -n 'test (count (commandline -xpc)) -eq 1' -xa '(builtin -n)' +complete -c builtin -n 'test (count (commandline -xpc)) -ge 2' -xa '(__fish_complete_subcommand)' diff --git a/share/completions/bundle.fish b/share/completions/bundle.fish index ce47b9759..f38028ec6 100644 --- a/share/completions/bundle.fish +++ b/share/completions/bundle.fish @@ -1,7 +1,7 @@ # Completion for bundler function __fish_bundle_no_command -d 'Test if bundle has been given no subcommand' - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end @@ -9,7 +9,7 @@ function __fish_bundle_no_command -d 'Test if bundle has been given no subcomman end function __fish_bundle_using_command -d 'Test if bundle has been given a specific subcommand' - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/busctl.fish b/share/completions/busctl.fish index b5c13b6e9..49c91e9dd 100644 --- a/share/completions/busctl.fish +++ b/share/completions/busctl.fish @@ -23,7 +23,7 @@ function _fish_busctl m-match= S-size= l-list q-quiet v-verbose e-expect-reply= Ä-auto-start= \ 1-allow-interactive-authorization= t-timeout= 2-augment-creds= U-user 3-system \ H/host= M/machine= n-no-pager N-no-legend h/help V-version - set -l cmdline (commandline -opc) (commandline -ct) + set -l cmdline (commandline -xpc) (commandline -ct) set -e cmdline[1] argparse $args -- $cmdline 2>/dev/null or return diff --git a/share/completions/cabal.fish b/share/completions/cabal.fish index b5e4ac1fc..24e37d95a 100644 --- a/share/completions/cabal.fish +++ b/share/completions/cabal.fish @@ -1,5 +1,5 @@ function __fish_complete_cabal - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) if test (count $cmd) -gt 1 cabal $cmd[2..-1] --list-options else diff --git a/share/completions/canto.fish b/share/completions/canto.fish index 69b46a78b..7ec410246 100644 --- a/share/completions/canto.fish +++ b/share/completions/canto.fish @@ -1,6 +1,6 @@ function __fish_canto_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/cleanmgr.fish b/share/completions/cleanmgr.fish index 4ebb4545a..e1e687a7c 100644 --- a/share/completions/cleanmgr.fish +++ b/share/completions/cleanmgr.fish @@ -1,5 +1,5 @@ function __cleanmgr_complete_args -d 'Function to generate args' - set -l previous_token (commandline -oc)[-1] + set -l previous_token (commandline -xc)[-1] if test "$previous_token" = /d __fish_print_windows_drives diff --git a/share/completions/climate.fish b/share/completions/climate.fish index a4bb4edda..1b62d5fc8 100644 --- a/share/completions/climate.fish +++ b/share/completions/climate.fish @@ -3,7 +3,7 @@ # The tool can be found at https://github.com/adtac/climate function __fish_climate_has_no_argument - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) not set -q cmd[2] end diff --git a/share/completions/cmdkey.fish b/share/completions/cmdkey.fish index e9abe1a6c..c15b2eb86 100644 --- a/share/completions/cmdkey.fish +++ b/share/completions/cmdkey.fish @@ -1,6 +1,6 @@ function __cmdkey_complete_args -d 'Function to generate args' set -l current_token (commandline -tc) - set -l previous_token (commandline -oc)[-1] + set -l previous_token (commandline -xc)[-1] switch $current_token case '/user:*' diff --git a/share/completions/command.fish b/share/completions/command.fish index e55a15c3d..84d28fc36 100644 --- a/share/completions/command.fish +++ b/share/completions/command.fish @@ -1,5 +1,5 @@ -complete -c command -n 'test (count (commandline -opc)) -eq 1' -s h -l help -d 'Display help and exit' -complete -c command -n 'test (count (commandline -opc)) -eq 1' -s a -l all -d 'Print all external commands by the given name' -complete -c command -n 'test (count (commandline -opc)) -eq 1' -s q -l quiet -l query -d 'Do not print anything, only set exit status' -complete -c command -n 'test (count (commandline -opc)) -eq 1' -s s -s v -l search -d 'Print the file that would be executed' +complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit' +complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s a -l all -d 'Print all external commands by the given name' +complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s q -l quiet -l query -d 'Do not print anything, only set exit status' +complete -c command -n 'test (count (commandline -xpc)) -eq 1' -s s -s v -l search -d 'Print the file that would be executed' complete -c command -xa "(__fish_complete_subcommand)" diff --git a/share/completions/composer.fish b/share/completions/composer.fish index 22839867d..1df493ca0 100644 --- a/share/completions/composer.fish +++ b/share/completions/composer.fish @@ -1,5 +1,5 @@ function __fish_composer_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 @@ -9,7 +9,7 @@ function __fish_composer_needs_command end function __fish_composer_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] diff --git a/share/completions/conda.fish b/share/completions/conda.fish index f3bce6fb9..5be445a63 100644 --- a/share/completions/conda.fish +++ b/share/completions/conda.fish @@ -27,7 +27,7 @@ function __fish_conda_subcommand set -l have_sub $status # get the commandline args without the "conda" - set -l toks (commandline -opc)[2..-1] + set -l toks (commandline -xpc)[2..-1] # Remove any important options - if we had options with arguments, # they'd need to be listed here to be removed. diff --git a/share/completions/configure.fish b/share/completions/configure.fish index 2d10e22e6..fc32e9864 100644 --- a/share/completions/configure.fish +++ b/share/completions/configure.fish @@ -85,7 +85,7 @@ complete -c configure -l host -d "Cross-compile to build programs to run on HOST complete -c configure -l target -d "Configure for building compilers for TARGET" -x # use autoconf's --help to generate completions: -complete -c configure -a '(for tok in (commandline -opc) +complete -c configure -a '(for tok in (commandline -xpc) if string match -q "*configure" -- $tok __fish_parse_configure $tok break diff --git a/share/completions/connmanctl.fish b/share/completions/connmanctl.fish index 1dd431661..5e3035a0e 100644 --- a/share/completions/connmanctl.fish +++ b/share/completions/connmanctl.fish @@ -19,31 +19,31 @@ function __fish_print_connman_vpnconnections end # connmanctl does not accept options before commands, so requiring the commands to be in second position is okay -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a state -d "Shows if the system is online or offline" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a technologies -d "Display technologies" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a clock -d "Get System Clock Properties" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a enable -d "Enables given technology or offline mode" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] enable" -a "(__fish_print_connman_technologies) offline" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a disable -d "Disables given technology or offline mode" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] disable" -a "(__fish_print_connman_technologies) offline" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a tether -d "Enable, disable tethering, set SSID and passphrase for wifi" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] tether" -a "(__fish_print_connman_technologies)" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 3; and contains -- (commandline -opc)[2] tether" -a "on off" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a services -d "Display services" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] services" -a "(__fish_print_connman_services)" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a peers -d "Display peers" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a scan -d "Scans for new services for given technology" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] scan" -a "(__fish_print_connman_technologies)" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a connect -d "Connect a given service or peer" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] connect" -a "(__fish_print_connman_services)" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a disconnect -d "Disconnect a given service or peer" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] disconnect" -a "(__fish_print_connman_services)" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a config -d "Set service configuration options" -complete -f -c connmanctl -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] config" -a "(__fish_print_connman_services)" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a monitor -d "Monitor signals from interfaces" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a vpnconnections -d "Display VPN connections" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] vpnconnections" -a "(__fish_print_connman_vpnconnections)" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a session -d "Enable or disable a session" -complete -f -c connmanctl -n "test (count (commandline -opc)) -eq 2; and contains -- (commandline -opc)[2] session" -a "on off connect disconnect config" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a peer_service -d "(Un)Register a Peer Service" -complete -f -c connmanctl -n "test (count (commandline -opc)) -lt 2" -a help -d "Show help" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a state -d "Shows if the system is online or offline" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a technologies -d "Display technologies" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a clock -d "Get System Clock Properties" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a enable -d "Enables given technology or offline mode" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] enable" -a "(__fish_print_connman_technologies) offline" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a disable -d "Disables given technology or offline mode" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] disable" -a "(__fish_print_connman_technologies) offline" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a tether -d "Enable, disable tethering, set SSID and passphrase for wifi" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] tether" -a "(__fish_print_connman_technologies)" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 3; and contains -- (commandline -xpc)[2] tether" -a "on off" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a services -d "Display services" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] services" -a "(__fish_print_connman_services)" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a peers -d "Display peers" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a scan -d "Scans for new services for given technology" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] scan" -a "(__fish_print_connman_technologies)" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a connect -d "Connect a given service or peer" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] connect" -a "(__fish_print_connman_services)" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a disconnect -d "Disconnect a given service or peer" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] disconnect" -a "(__fish_print_connman_services)" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a config -d "Set service configuration options" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] config" -a "(__fish_print_connman_services)" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a monitor -d "Monitor signals from interfaces" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a vpnconnections -d "Display VPN connections" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] vpnconnections" -a "(__fish_print_connman_vpnconnections)" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a session -d "Enable or disable a session" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -eq 2; and contains -- (commandline -xpc)[2] session" -a "on off connect disconnect config" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a peer_service -d "(Un)Register a Peer Service" +complete -f -c connmanctl -n "test (count (commandline -xpc)) -lt 2" -a help -d "Show help" diff --git a/share/completions/cvs.fish b/share/completions/cvs.fish index 71cc55554..6dff26035 100644 --- a/share/completions/cvs.fish +++ b/share/completions/cvs.fish @@ -77,195 +77,195 @@ complete -c cvs -n __fish_use_subcommand -x -a watchers -d 'See who is watching # Completions for the 'add' subcommand # -complete -c cvs -n 'contains \'add\' (commandline -poc)' -s k -x -d 'Use "rcs-kflag" to add the file with the specified' -complete -c cvs -n 'contains \'add\' (commandline -poc)' -s m -x -d 'Use "message" for the creation log.' +complete -c cvs -n 'contains \'add\' (commandline -pxc)' -s k -x -d 'Use "rcs-kflag" to add the file with the specified' +complete -c cvs -n 'contains \'add\' (commandline -pxc)' -s m -x -d 'Use "message" for the creation log.' # # Completions for the 'admin' subcommand # -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s a -x -d 'Append (comma-separated) user names to access list.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s A -x -d 'Append another file\'s access list.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s b -d '[rev] Set default branch (highest branch on trunk if omitted).' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s c -x -d 'Set comment leader.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s e -d '[users] Remove (comma-separated) user names from access list' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s I -d 'Run interactively.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s k -x -d 'Set keyword substitution mode:' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s l -d '[rev] Lock revision (latest revision on branch,' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s L -d 'Set strict locking.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s m -x -d 'Replace revision\'s log message.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s n -x -d 'Tag branch or revision. If :rev is omitted,' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s N -x -d 'Same as -n except override existing tag.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s o -x -d 'Delete (outdate) specified range of revisions:' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s q -d 'Run quietly.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s s -x -d 'Set revision state (latest revision on branch,' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s t -d '[file] Get descriptive text from file (stdin if omitted).' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s t -d '-string Set descriptive text.' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s u -d '[rev] Unlock the revision (latest revision on branch,' -complete -c cvs -n 'contains \'admin\' (commandline -poc)' -s U -d 'Unset strict locking.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s a -x -d 'Append (comma-separated) user names to access list.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s A -x -d 'Append another file\'s access list.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s b -d '[rev] Set default branch (highest branch on trunk if omitted).' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s c -x -d 'Set comment leader.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s e -d '[users] Remove (comma-separated) user names from access list' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s I -d 'Run interactively.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s k -x -d 'Set keyword substitution mode:' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s l -d '[rev] Lock revision (latest revision on branch,' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s L -d 'Set strict locking.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s m -x -d 'Replace revision\'s log message.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s n -x -d 'Tag branch or revision. If :rev is omitted,' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s N -x -d 'Same as -n except override existing tag.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s o -x -d 'Delete (outdate) specified range of revisions:' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s q -d 'Run quietly.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s s -x -d 'Set revision state (latest revision on branch,' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s t -d '[file] Get descriptive text from file (stdin if omitted).' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s t -d '-string Set descriptive text.' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s u -d '[rev] Unlock the revision (latest revision on branch,' +complete -c cvs -n 'contains \'admin\' (commandline -pxc)' -s U -d 'Unset strict locking.' # # Completions for the 'annotate' subcommand # -complete -c cvs -n 'contains \'annotate\' (commandline -poc)' -s l -d 'Local directory only, no recursion.' -complete -c cvs -n 'contains \'annotate\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'annotate\' (commandline -poc)' -s f -d 'Use head revision if tag/date not found.' -complete -c cvs -n 'contains \'annotate\' (commandline -poc)' -s F -d 'Annotate binary files.' -complete -c cvs -n 'contains \'annotate\' (commandline -poc)' -s r -x -d 'Annotate file as of specified revision/tag.' -complete -c cvs -n 'contains \'annotate\' (commandline -poc)' -s D -x -d 'Annotate file as of specified date.' +complete -c cvs -n 'contains \'annotate\' (commandline -pxc)' -s l -d 'Local directory only, no recursion.' +complete -c cvs -n 'contains \'annotate\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'annotate\' (commandline -pxc)' -s f -d 'Use head revision if tag/date not found.' +complete -c cvs -n 'contains \'annotate\' (commandline -pxc)' -s F -d 'Annotate binary files.' +complete -c cvs -n 'contains \'annotate\' (commandline -pxc)' -s r -x -d 'Annotate file as of specified revision/tag.' +complete -c cvs -n 'contains \'annotate\' (commandline -pxc)' -s D -x -d 'Annotate file as of specified date.' # # Completions for the 'checkout' subcommand # -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s A -d 'Reset any sticky tags/date/kopts.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s N -d 'Don\'t shorten module paths if -d specified.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s P -d 'Prune empty directories.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s c -d '"cat" the module database.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s f -d 'Force a head revision match if tag/date not found.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s l -d 'Local directory only, not recursive' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s n -d 'Do not run module program (if any).' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s p -d 'Check out files to standard output (avoids stickiness).' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s s -d 'Like -c, but include module status.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s r -x -d 'Check out revision or tag. (implies -P) (is sticky)' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s D -x -d 'Check out revisions as of date. (implies -P) (is sticky)' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s d -x -a '(__fish_complete_directories (commandline -ct))' -d 'Check out into dir instead of module name.' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s k -x -d 'Use RCS kopt -k option on checkout. (is sticky)' -complete -c cvs -n 'contains \'checkout\' (commandline -poc)' -s j -x -d 'Merge in changes made between current revision and rev.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s A -d 'Reset any sticky tags/date/kopts.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s N -d 'Don\'t shorten module paths if -d specified.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s P -d 'Prune empty directories.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s c -d '"cat" the module database.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s f -d 'Force a head revision match if tag/date not found.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s l -d 'Local directory only, not recursive' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s n -d 'Do not run module program (if any).' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s p -d 'Check out files to standard output (avoids stickiness).' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s s -d 'Like -c, but include module status.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s r -x -d 'Check out revision or tag. (implies -P) (is sticky)' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s D -x -d 'Check out revisions as of date. (implies -P) (is sticky)' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s d -x -a '(__fish_complete_directories (commandline -ct))' -d 'Check out into dir instead of module name.' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s k -x -d 'Use RCS kopt -k option on checkout. (is sticky)' +complete -c cvs -n 'contains \'checkout\' (commandline -pxc)' -s j -x -d 'Merge in changes made between current revision and rev.' # # Completions for the 'commit' subcommand # -complete -c cvs -n 'contains \'commit\' (commandline -poc)' -s c -d 'Check for valid edits before committing.' -complete -c cvs -n 'contains \'commit\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'commit\' (commandline -poc)' -s l -d 'Local directory only (not recursive).' -complete -c cvs -n 'contains \'commit\' (commandline -poc)' -s f -d 'Force the file to be committed; disables recursion.' -complete -c cvs -n 'contains \'commit\' (commandline -poc)' -s F -x -d 'Read the log message from file.' -complete -c cvs -n 'contains \'commit\' (commandline -poc)' -s m -x -d 'Log message.' -complete -c cvs -n 'contains \'commit\' (commandline -poc)' -s r -x -d 'Commit to this branch or trunk revision.' +complete -c cvs -n 'contains \'commit\' (commandline -pxc)' -s c -d 'Check for valid edits before committing.' +complete -c cvs -n 'contains \'commit\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'commit\' (commandline -pxc)' -s l -d 'Local directory only (not recursive).' +complete -c cvs -n 'contains \'commit\' (commandline -pxc)' -s f -d 'Force the file to be committed; disables recursion.' +complete -c cvs -n 'contains \'commit\' (commandline -pxc)' -s F -x -d 'Read the log message from file.' +complete -c cvs -n 'contains \'commit\' (commandline -pxc)' -s m -x -d 'Log message.' +complete -c cvs -n 'contains \'commit\' (commandline -pxc)' -s r -x -d 'Commit to this branch or trunk revision.' # # Completions for the 'diff' subcommand # -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s l -d 'Local directory only, not recursive' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s k -x -d 'Specify keyword expansion mode.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s D -x -d 'Diff revision for date against working file.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s D -x -d 'Diff rev1/date1 against date2.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s r -x -d 'Diff revision for rev1 against working file.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s r -x -d 'Diff rev1/date1 against rev2.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s i -d '--ignore-case Consider upper- and lower-case to be the same.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s w -d '--ignore-all-space Ignore all white space.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s b -d '--ignore-space-change Ignore changes in the amount of white space.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s B -d '--ignore-blank-lines Ignore changes whose lines are all blank.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s I -x -d '--ignore-matching-lines=RE Ignore changes whose lines all match RE.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'Binary Read and write data in binary mode.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s a -d '--text Treat all files as text.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s c -d '-C NUM --context[=NUM] Output NUM (default 2) lines of copied context.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s u -d '-U NUM --unified[=NUM] Output NUM (default 2) lines of unified context.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s N -d 'UM Use NUM context lines.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s L -x -d '--label LABEL Use LABEL instead of file name.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s p -d '--show-c-function Show which C function each change is in.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s F -x -d '--show-function-line=RE Show the most recent line matching RE.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'Brief Output only whether files differ.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s e -d '--ed Output an ed script.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s f -d '--forward-ed Output something like an ed script in forward order.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s n -d '--rcs Output an RCS format diff.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s y -d '--side-by-side Output in two columns.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s W -x -d '--width=NUM Output at most NUM (default 130) characters per line.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'Left-column Output only the left column of common lines.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'Suppress-common-lines Do not output common lines.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'Ifdef=NAME Output merged file to show `#ifdef NAME\' diffs.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'GTYPE-group-format=GFMT Similar, but format GTYPE input groups with GFMT.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'Line-format=LFMT Similar, but format all input lines with LFMT.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'LTYPE-line-format=LFMT Similar, but format LTYPE input lines with LFMT.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s t -d '--expand-tabs Expand tabs to spaces in output.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s T -d '--initial-tab Make tabs line up by prepending a tab.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s N -d '--new-file Treat absent files as empty.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s s -d '--report-identical-files Report when two files are the same.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s - -d 'Horizon-lines=NUM Keep NUM lines of the common prefix and suffix.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s d -d '--minimal Try hard to find a smaller set of changes.' -complete -c cvs -n 'contains \'diff\' (commandline -poc)' -s H -d '--speed-large-files Assume large files and many scattered small changes.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s l -d 'Local directory only, not recursive' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s k -x -d 'Specify keyword expansion mode.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s D -x -d 'Diff revision for date against working file.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s D -x -d 'Diff rev1/date1 against date2.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s r -x -d 'Diff revision for rev1 against working file.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s r -x -d 'Diff rev1/date1 against rev2.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s i -d '--ignore-case Consider upper- and lower-case to be the same.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s w -d '--ignore-all-space Ignore all white space.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s b -d '--ignore-space-change Ignore changes in the amount of white space.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s B -d '--ignore-blank-lines Ignore changes whose lines are all blank.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s I -x -d '--ignore-matching-lines=RE Ignore changes whose lines all match RE.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'Binary Read and write data in binary mode.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s a -d '--text Treat all files as text.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s c -d '-C NUM --context[=NUM] Output NUM (default 2) lines of copied context.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s u -d '-U NUM --unified[=NUM] Output NUM (default 2) lines of unified context.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s N -d 'UM Use NUM context lines.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s L -x -d '--label LABEL Use LABEL instead of file name.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s p -d '--show-c-function Show which C function each change is in.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s F -x -d '--show-function-line=RE Show the most recent line matching RE.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'Brief Output only whether files differ.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s e -d '--ed Output an ed script.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s f -d '--forward-ed Output something like an ed script in forward order.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s n -d '--rcs Output an RCS format diff.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s y -d '--side-by-side Output in two columns.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s W -x -d '--width=NUM Output at most NUM (default 130) characters per line.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'Left-column Output only the left column of common lines.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'Suppress-common-lines Do not output common lines.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'Ifdef=NAME Output merged file to show `#ifdef NAME\' diffs.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'GTYPE-group-format=GFMT Similar, but format GTYPE input groups with GFMT.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'Line-format=LFMT Similar, but format all input lines with LFMT.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'LTYPE-line-format=LFMT Similar, but format LTYPE input lines with LFMT.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s t -d '--expand-tabs Expand tabs to spaces in output.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s T -d '--initial-tab Make tabs line up by prepending a tab.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s N -d '--new-file Treat absent files as empty.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s s -d '--report-identical-files Report when two files are the same.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s - -d 'Horizon-lines=NUM Keep NUM lines of the common prefix and suffix.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s d -d '--minimal Try hard to find a smaller set of changes.' +complete -c cvs -n 'contains \'diff\' (commandline -pxc)' -s H -d '--speed-large-files Assume large files and many scattered small changes.' # # Completions for the 'edit' subcommand # -complete -c cvs -n 'contains \'edit\' (commandline -poc)' -s l -d 'Local directory only, not recursive.' -complete -c cvs -n 'contains \'edit\' (commandline -poc)' -s R -d 'Process directories recursively (default).' -complete -c cvs -n 'contains \'edit\' (commandline -poc)' -s a -d 'Specify action to register for temporary watch, one of:' -complete -c cvs -n 'contains \'edit\' (commandline -poc)' -s c -d 'Check for s edited by others and abort if found.' -complete -c cvs -n 'contains \'edit\' (commandline -poc)' -s f -d 'Allow edit if s are edited by others (default).' +complete -c cvs -n 'contains \'edit\' (commandline -pxc)' -s l -d 'Local directory only, not recursive.' +complete -c cvs -n 'contains \'edit\' (commandline -pxc)' -s R -d 'Process directories recursively (default).' +complete -c cvs -n 'contains \'edit\' (commandline -pxc)' -s a -d 'Specify action to register for temporary watch, one of:' +complete -c cvs -n 'contains \'edit\' (commandline -pxc)' -s c -d 'Check for s edited by others and abort if found.' +complete -c cvs -n 'contains \'edit\' (commandline -pxc)' -s f -d 'Allow edit if s are edited by others (default).' # # Completions for the 'editors' subcommand # -complete -c cvs -n 'contains \'editors\' (commandline -poc)' -s l -d 'Process this directory only (not recursive).' -complete -c cvs -n 'contains \'editors\' (commandline -poc)' -s R -d 'Process directories recursively (default).' +complete -c cvs -n 'contains \'editors\' (commandline -pxc)' -s l -d 'Process this directory only (not recursive).' +complete -c cvs -n 'contains \'editors\' (commandline -pxc)' -s R -d 'Process directories recursively (default).' # # Completions for the 'export' subcommand # -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s N -d 'Don\'t shorten module paths if -d specified.' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s f -d 'Force a head revision match if tag/date not found.' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s l -d 'Local directory only, not recursive' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s R -d 'Process directories recursively (default).' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s n -d 'Do not run module program (if any).' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s r -x -d 'Export tagged revisions.' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s D -x -d 'Export revisions as of date.' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s d -x -a '(__fish_complete_directories (commandline -ct))' -d 'Export into dir instead of module name.' -complete -c cvs -n 'contains \'export\' (commandline -poc)' -s k -x -d 'Use RCS kopt -k option on checkout.' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s N -d 'Don\'t shorten module paths if -d specified.' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s f -d 'Force a head revision match if tag/date not found.' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s l -d 'Local directory only, not recursive' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s R -d 'Process directories recursively (default).' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s n -d 'Do not run module program (if any).' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s r -x -d 'Export tagged revisions.' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s D -x -d 'Export revisions as of date.' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s d -x -a '(__fish_complete_directories (commandline -ct))' -d 'Export into dir instead of module name.' +complete -c cvs -n 'contains \'export\' (commandline -pxc)' -s k -x -d 'Use RCS kopt -k option on checkout.' # # Completions for the 'history' subcommand # -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s T -d 'Produce report on all TAGs' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s c -d 'Committed (Modified) files' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s o -d 'Checked out modules' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s m -x -d 'Look for specified module (repeatable)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s x -x -d 'Extract by record type' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s e -d 'Everything (same as -x, but all record types)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s a -d 'All users (Default is self)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s l -d 'Last modified (committed or modified report)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s w -d 'Working directory must match' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s D -x -d 'Since date (Many formats)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s b -x -d 'Back to record with str in module/file/repos field' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s f -r -d 'Specified file (same as command line) (repeatable)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s n -x -d 'In module (repeatable)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s p -x -d 'In repository (repeatable)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s r -x -d 'Since rev or tag (looks inside RCS files!)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s t -x -d 'Since tag record placed in history file (by anyone).' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s u -x -a '(__fish_complete_users)' -d 'For user name (repeatable)' -complete -c cvs -n 'contains \'history\' (commandline -poc)' -s z -x -d 'Output for time zone (e.g. -z -0700)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s T -d 'Produce report on all TAGs' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s c -d 'Committed (Modified) files' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s o -d 'Checked out modules' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s m -x -d 'Look for specified module (repeatable)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s x -x -d 'Extract by record type' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s e -d 'Everything (same as -x, but all record types)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s a -d 'All users (Default is self)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s l -d 'Last modified (committed or modified report)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s w -d 'Working directory must match' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s D -x -d 'Since date (Many formats)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s b -x -d 'Back to record with str in module/file/repos field' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s f -r -d 'Specified file (same as command line) (repeatable)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s n -x -d 'In module (repeatable)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s p -x -d 'In repository (repeatable)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s r -x -d 'Since rev or tag (looks inside RCS files!)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s t -x -d 'Since tag record placed in history file (by anyone).' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s u -x -a '(__fish_complete_users)' -d 'For user name (repeatable)' +complete -c cvs -n 'contains \'history\' (commandline -pxc)' -s z -x -d 'Output for time zone (e.g. -z -0700)' # # Completions for the 'import' subcommand # -complete -c cvs -n 'contains \'import\' (commandline -poc)' -s d -d 'Use the file\'s modification time as the time of import.' -complete -c cvs -n 'contains \'import\' (commandline -poc)' -s X -d 'When importing new files, mark their trunk revisions as dead.' -complete -c cvs -n 'contains \'import\' (commandline -poc)' -s k -x -d 'Set default RCS keyword substitution mode.' -complete -c cvs -n 'contains \'import\' (commandline -poc)' -s I -x -d 'More files to ignore (! to reset).' -complete -c cvs -n 'contains \'import\' (commandline -poc)' -s b -x -d 'Vendor branch id.' -complete -c cvs -n 'contains \'import\' (commandline -poc)' -s m -x -d 'Log message.' -complete -c cvs -n 'contains \'import\' (commandline -poc)' -s W -x -d 'Wrappers specification line.' +complete -c cvs -n 'contains \'import\' (commandline -pxc)' -s d -d 'Use the file\'s modification time as the time of import.' +complete -c cvs -n 'contains \'import\' (commandline -pxc)' -s X -d 'When importing new files, mark their trunk revisions as dead.' +complete -c cvs -n 'contains \'import\' (commandline -pxc)' -s k -x -d 'Set default RCS keyword substitution mode.' +complete -c cvs -n 'contains \'import\' (commandline -pxc)' -s I -x -d 'More files to ignore (! to reset).' +complete -c cvs -n 'contains \'import\' (commandline -pxc)' -s b -x -d 'Vendor branch id.' +complete -c cvs -n 'contains \'import\' (commandline -pxc)' -s m -x -d 'Log message.' +complete -c cvs -n 'contains \'import\' (commandline -pxc)' -s W -x -d 'Wrappers specification line.' # @@ -284,19 +284,19 @@ complete -c cvs -n 'contains \'import\' (commandline -poc)' -s W -x -d 'Wrappers # Completions for the 'log' subcommand # -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s l -d 'Local directory only, no recursion.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s b -d 'Only list revisions on the default branch.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s h -d 'Only print header.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s R -d 'Only print name of RCS file.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s t -d 'Only print header and descriptive text.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s N -d 'Do not list tags.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s S -d 'Do not print name/header if no revisions selected. -d, -r,' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s s -d ', & -w have little effect in conjunction with -b, -h, -R, and' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s t -x -d 'This option.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s r -d '[revisions]' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s d -x -d 'A semicolon-separated list of dates' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s s -x -d 'Only list revisions with specified states.' -complete -c cvs -n 'contains \'log\' (commandline -poc)' -s w -d '[logins]' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s l -d 'Local directory only, no recursion.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s b -d 'Only list revisions on the default branch.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s h -d 'Only print header.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s R -d 'Only print name of RCS file.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s t -d 'Only print header and descriptive text.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s N -d 'Do not list tags.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s S -d 'Do not print name/header if no revisions selected. -d, -r,' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s s -d ', & -w have little effect in conjunction with -b, -h, -R, and' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s t -x -d 'This option.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s r -d '[revisions]' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s d -x -d 'A semicolon-separated list of dates' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s s -x -d 'Only list revisions with specified states.' +complete -c cvs -n 'contains \'log\' (commandline -pxc)' -s w -d '[logins]' # @@ -315,175 +315,175 @@ complete -c cvs -n 'contains \'log\' (commandline -poc)' -s w -d '[logins]' # Completions for the 'ls' subcommand # -complete -c cvs -n 'contains \'ls\' (commandline -poc)' -s d -d 'Show dead revisions (with tag when specified).' -complete -c cvs -n 'contains \'ls\' (commandline -poc)' -s e -d 'Display in CVS/Entries format.' -complete -c cvs -n 'contains \'ls\' (commandline -poc)' -s l -d 'Display all details.' -complete -c cvs -n 'contains \'ls\' (commandline -poc)' -s P -d 'Prune empty directories.' -complete -c cvs -n 'contains \'ls\' (commandline -poc)' -s R -d 'List recursively.' -complete -c cvs -n 'contains \'ls\' (commandline -poc)' -s r -x -d 'Show files with revision or tag.' -complete -c cvs -n 'contains \'ls\' (commandline -poc)' -s D -x -d 'Show files from date.' +complete -c cvs -n 'contains \'ls\' (commandline -pxc)' -s d -d 'Show dead revisions (with tag when specified).' +complete -c cvs -n 'contains \'ls\' (commandline -pxc)' -s e -d 'Display in CVS/Entries format.' +complete -c cvs -n 'contains \'ls\' (commandline -pxc)' -s l -d 'Display all details.' +complete -c cvs -n 'contains \'ls\' (commandline -pxc)' -s P -d 'Prune empty directories.' +complete -c cvs -n 'contains \'ls\' (commandline -pxc)' -s R -d 'List recursively.' +complete -c cvs -n 'contains \'ls\' (commandline -pxc)' -s r -x -d 'Show files with revision or tag.' +complete -c cvs -n 'contains \'ls\' (commandline -pxc)' -s D -x -d 'Show files from date.' # # Completions for the 'pserver' subcommand # -complete -c cvs -n 'contains \'pserver\' (commandline -poc)' -s c -x -d 'Path to an alternative CVS config file.' +complete -c cvs -n 'contains \'pserver\' (commandline -pxc)' -s c -x -d 'Path to an alternative CVS config file.' # # Completions for the 'rannotate' subcommand # -complete -c cvs -n 'contains \'rannotate\' (commandline -poc)' -s l -d 'Local directory only, no recursion.' -complete -c cvs -n 'contains \'rannotate\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'rannotate\' (commandline -poc)' -s f -d 'Use head revision if tag/date not found.' -complete -c cvs -n 'contains \'rannotate\' (commandline -poc)' -s F -d 'Annotate binary files.' -complete -c cvs -n 'contains \'rannotate\' (commandline -poc)' -s r -x -d 'Annotate file as of specified revision/tag.' -complete -c cvs -n 'contains \'rannotate\' (commandline -poc)' -s D -x -d 'Annotate file as of specified date.' +complete -c cvs -n 'contains \'rannotate\' (commandline -pxc)' -s l -d 'Local directory only, no recursion.' +complete -c cvs -n 'contains \'rannotate\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'rannotate\' (commandline -pxc)' -s f -d 'Use head revision if tag/date not found.' +complete -c cvs -n 'contains \'rannotate\' (commandline -pxc)' -s F -d 'Annotate binary files.' +complete -c cvs -n 'contains \'rannotate\' (commandline -pxc)' -s r -x -d 'Annotate file as of specified revision/tag.' +complete -c cvs -n 'contains \'rannotate\' (commandline -pxc)' -s D -x -d 'Annotate file as of specified date.' # # Completions for the 'rdiff' subcommand # -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s r -x -d 'Date [-r rev2 | -D date2] modules…' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s f -d 'Force a head revision match if tag/date not found.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s l -d 'Local directory only, not recursive' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s c -d 'Context diffs (default)' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s u -d 'Unidiff format.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s s -d 'Short patch - one liner per file.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s t -d 'Top two diffs - last change made to the file.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s V -x -d 'Use RCS Version "vers" for keyword expansion.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s k -x -d 'Specify keyword expansion mode.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s D -x -d 'Date.' -complete -c cvs -n 'contains \'rdiff\' (commandline -poc)' -s r -x -d 'Revision - symbolic or numeric.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s r -x -d 'Date [-r rev2 | -D date2] modules…' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s f -d 'Force a head revision match if tag/date not found.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s l -d 'Local directory only, not recursive' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s c -d 'Context diffs (default)' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s u -d 'Unidiff format.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s s -d 'Short patch - one liner per file.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s t -d 'Top two diffs - last change made to the file.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s V -x -d 'Use RCS Version "vers" for keyword expansion.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s k -x -d 'Specify keyword expansion mode.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s D -x -d 'Date.' +complete -c cvs -n 'contains \'rdiff\' (commandline -pxc)' -s r -x -d 'Revision - symbolic or numeric.' # # Completions for the 'release' subcommand # -complete -c cvs -n 'contains \'release\' (commandline -poc)' -s d -d 'Delete the given directory.' +complete -c cvs -n 'contains \'release\' (commandline -pxc)' -s d -d 'Delete the given directory.' # # Completions for the 'remove' subcommand # -complete -c cvs -n 'contains \'remove\' (commandline -poc)' -s f -d 'Delete the file before removing it.' -complete -c cvs -n 'contains \'remove\' (commandline -poc)' -s l -d 'Process this directory only (not recursive).' -complete -c cvs -n 'contains \'remove\' (commandline -poc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'remove\' (commandline -pxc)' -s f -d 'Delete the file before removing it.' +complete -c cvs -n 'contains \'remove\' (commandline -pxc)' -s l -d 'Process this directory only (not recursive).' +complete -c cvs -n 'contains \'remove\' (commandline -pxc)' -s R -d 'Process directories recursively.' # # Completions for the 'rlog' subcommand # -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s l -d 'Local directory only, no recursion.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s b -d 'Only list revisions on the default branch.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s h -d 'Only print header.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s R -d 'Only print name of RCS file.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s t -d 'Only print header and descriptive text.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s N -d 'Do not list tags.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s S -d 'Do not print name/header if no revisions selected. -d, -r,' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s s -d ', & -w have little effect in conjunction with -b, -h, -R, and' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s t -x -d 'This option.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s r -d '[revisions]' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s d -x -d 'A semicolon-separated list of dates' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s s -x -d 'Only list revisions with specified states.' -complete -c cvs -n 'contains \'rlog\' (commandline -poc)' -s w -d '[logins]' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s l -d 'Local directory only, no recursion.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s b -d 'Only list revisions on the default branch.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s h -d 'Only print header.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s R -d 'Only print name of RCS file.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s t -d 'Only print header and descriptive text.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s N -d 'Do not list tags.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s S -d 'Do not print name/header if no revisions selected. -d, -r,' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s s -d ', & -w have little effect in conjunction with -b, -h, -R, and' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s t -x -d 'This option.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s r -d '[revisions]' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s d -x -d 'A semicolon-separated list of dates' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s s -x -d 'Only list revisions with specified states.' +complete -c cvs -n 'contains \'rlog\' (commandline -pxc)' -s w -d '[logins]' # # Completions for the 'rls' subcommand # -complete -c cvs -n 'contains \'rls\' (commandline -poc)' -s d -d 'Show dead revisions (with tag when specified).' -complete -c cvs -n 'contains \'rls\' (commandline -poc)' -s e -d 'Display in CVS/Entries format.' -complete -c cvs -n 'contains \'rls\' (commandline -poc)' -s l -d 'Display all details.' -complete -c cvs -n 'contains \'rls\' (commandline -poc)' -s P -d 'Prune empty directories.' -complete -c cvs -n 'contains \'rls\' (commandline -poc)' -s R -d 'List recursively.' -complete -c cvs -n 'contains \'rls\' (commandline -poc)' -s r -x -d 'Show files with revision or tag.' -complete -c cvs -n 'contains \'rls\' (commandline -poc)' -s D -x -d 'Show files from date.' +complete -c cvs -n 'contains \'rls\' (commandline -pxc)' -s d -d 'Show dead revisions (with tag when specified).' +complete -c cvs -n 'contains \'rls\' (commandline -pxc)' -s e -d 'Display in CVS/Entries format.' +complete -c cvs -n 'contains \'rls\' (commandline -pxc)' -s l -d 'Display all details.' +complete -c cvs -n 'contains \'rls\' (commandline -pxc)' -s P -d 'Prune empty directories.' +complete -c cvs -n 'contains \'rls\' (commandline -pxc)' -s R -d 'List recursively.' +complete -c cvs -n 'contains \'rls\' (commandline -pxc)' -s r -x -d 'Show files with revision or tag.' +complete -c cvs -n 'contains \'rls\' (commandline -pxc)' -s D -x -d 'Show files from date.' # # Completions for the 'rtag' subcommand # -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s a -d 'Clear tag from removed files that would not otherwise be tagged.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s b -d 'Make the tag a "branch" tag, allowing concurrent development.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s B -d 'Allows -F and -d to disturb branch tags. Use with extreme care.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s d -d 'Delete the given tag.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s F -d 'Move tag if it already exists.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s f -d 'Force a head revision match if tag/date not found.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s l -d 'Local directory only, not recursive.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s n -d 'No execution of \'tag program\'.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s r -x -d 'Existing revision/tag.' -complete -c cvs -n 'contains \'rtag\' (commandline -poc)' -s D -d 'Existing date.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s a -d 'Clear tag from removed files that would not otherwise be tagged.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s b -d 'Make the tag a "branch" tag, allowing concurrent development.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s B -d 'Allows -F and -d to disturb branch tags. Use with extreme care.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s d -d 'Delete the given tag.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s F -d 'Move tag if it already exists.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s f -d 'Force a head revision match if tag/date not found.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s l -d 'Local directory only, not recursive.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s n -d 'No execution of \'tag program\'.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s r -x -d 'Existing revision/tag.' +complete -c cvs -n 'contains \'rtag\' (commandline -pxc)' -s D -d 'Existing date.' # # Completions for the 'server' subcommand # -complete -c cvs -n 'contains \'server\' (commandline -poc)' -s c -x -d 'Path to an alternative CVS config file.' +complete -c cvs -n 'contains \'server\' (commandline -pxc)' -s c -x -d 'Path to an alternative CVS config file.' # # Completions for the 'status' subcommand # -complete -c cvs -n 'contains \'status\' (commandline -poc)' -s v -d 'Verbose format; includes tag information for the file' -complete -c cvs -n 'contains \'status\' (commandline -poc)' -s l -d 'Process this directory only (not recursive).' -complete -c cvs -n 'contains \'status\' (commandline -poc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'status\' (commandline -pxc)' -s v -d 'Verbose format; includes tag information for the file' +complete -c cvs -n 'contains \'status\' (commandline -pxc)' -s l -d 'Process this directory only (not recursive).' +complete -c cvs -n 'contains \'status\' (commandline -pxc)' -s R -d 'Process directories recursively.' # # Completions for the 'tag' subcommand # -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s b -d 'Make the tag a "branch" tag, allowing concurrent development.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s B -d 'Allows -F and -d to disturb branch tags. Use with extreme care.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s c -d 'Check that working files are unmodified.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s d -d 'Delete the given tag.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s F -d 'Move tag if it already exists.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s f -d 'Force a head revision match if tag/date not found.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s l -d 'Local directory only, not recursive.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s r -x -d 'Existing revision/tag.' -complete -c cvs -n 'contains \'tag\' (commandline -poc)' -s D -d 'Existing date.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s b -d 'Make the tag a "branch" tag, allowing concurrent development.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s B -d 'Allows -F and -d to disturb branch tags. Use with extreme care.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s c -d 'Check that working files are unmodified.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s d -d 'Delete the given tag.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s F -d 'Move tag if it already exists.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s f -d 'Force a head revision match if tag/date not found.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s l -d 'Local directory only, not recursive.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s r -x -d 'Existing revision/tag.' +complete -c cvs -n 'contains \'tag\' (commandline -pxc)' -s D -d 'Existing date.' # # Completions for the 'unedit' subcommand # -complete -c cvs -n 'contains \'unedit\' (commandline -poc)' -s l -d 'Local directory only, not recursive.' -complete -c cvs -n 'contains \'unedit\' (commandline -poc)' -s R -d 'Process directories recursively (default).' +complete -c cvs -n 'contains \'unedit\' (commandline -pxc)' -s l -d 'Local directory only, not recursive.' +complete -c cvs -n 'contains \'unedit\' (commandline -pxc)' -s R -d 'Process directories recursively (default).' # # Completions for the 'update' subcommand # -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s A -d 'Reset any sticky tags/date/kopts.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s P -d 'Prune empty directories.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s C -d 'Overwrite locally modified files with clean repository copies.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s d -d 'Build directories, like checkout does.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s f -d 'Force a head revision match if tag/date not found.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s l -d 'Local directory only, no recursion.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s R -d 'Process directories recursively.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s p -d 'Send updates to standard output (avoids stickiness).' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s k -x -d 'Use RCS kopt -k option on checkout. (is sticky)' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s r -x -d 'Update using specified revision/tag (is sticky).' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s D -x -d 'Set date to update from (is sticky).' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s j -x -d 'Merge in changes made between current revision and rev.' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s I -x -d 'More files to ignore (! to reset).' -complete -c cvs -n 'contains \'update\' (commandline -poc)' -s W -x -d 'Wrappers specification line.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s A -d 'Reset any sticky tags/date/kopts.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s P -d 'Prune empty directories.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s C -d 'Overwrite locally modified files with clean repository copies.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s d -d 'Build directories, like checkout does.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s f -d 'Force a head revision match if tag/date not found.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s l -d 'Local directory only, no recursion.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s R -d 'Process directories recursively.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s p -d 'Send updates to standard output (avoids stickiness).' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s k -x -d 'Use RCS kopt -k option on checkout. (is sticky)' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s r -x -d 'Update using specified revision/tag (is sticky).' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s D -x -d 'Set date to update from (is sticky).' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s j -x -d 'Merge in changes made between current revision and rev.' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s I -x -d 'More files to ignore (! to reset).' +complete -c cvs -n 'contains \'update\' (commandline -pxc)' -s W -x -d 'Wrappers specification line.' # @@ -496,14 +496,14 @@ complete -c cvs -n 'contains \'update\' (commandline -poc)' -s W -x -d 'Wrappers # Completions for the 'watch' subcommand # -complete -c cvs -n 'contains \'watch\' (commandline -poc)' -s l -x -a 'on off add remove' -d 'Local directory only, not recursive.' -complete -c cvs -n 'contains \'watch\' (commandline -poc)' -s R -x -a 'on off add remove' -d 'Process directories recursively (default).' -complete -c cvs -n 'contains \'watch\' (commandline -poc)' -s a -x -a 'add remove' -d 'Specify what actions, one of: `edit\', `unedit\',' +complete -c cvs -n 'contains \'watch\' (commandline -pxc)' -s l -x -a 'on off add remove' -d 'Local directory only, not recursive.' +complete -c cvs -n 'contains \'watch\' (commandline -pxc)' -s R -x -a 'on off add remove' -d 'Process directories recursively (default).' +complete -c cvs -n 'contains \'watch\' (commandline -pxc)' -s a -x -a 'add remove' -d 'Specify what actions, one of: `edit\', `unedit\',' # # Completions for the 'watchers' subcommand # -complete -c cvs -n 'contains \'watchers\' (commandline -poc)' -s l -d 'Process this directory only (not recursive).' -complete -c cvs -n 'contains \'watchers\' (commandline -poc)' -s R -d 'Process directories recursively (default).' +complete -c cvs -n 'contains \'watchers\' (commandline -pxc)' -s l -d 'Process this directory only (not recursive).' +complete -c cvs -n 'contains \'watchers\' (commandline -pxc)' -s R -d 'Process directories recursively (default).' diff --git a/share/completions/cwebp.fish b/share/completions/cwebp.fish index 08de82331..a05b5ca76 100644 --- a/share/completions/cwebp.fish +++ b/share/completions/cwebp.fish @@ -70,7 +70,7 @@ set -l metadata_opts ' ' function __fish_cwebp_is_first_arg_or_its_value -a arg -d 'Like __fish_is_first_arg, but also returns true for the second token after a given parameter' - set -l tokens (commandline -co) + set -l tokens (commandline -cx) switch (count $tokens) case 1 diff --git a/share/completions/darcs.fish b/share/completions/darcs.fish index 309d51dad..77438231b 100644 --- a/share/completions/darcs.fish +++ b/share/completions/darcs.fish @@ -3,7 +3,7 @@ # complete -c darcs -n "not __fish_use_subcommand" -a "(test -f _darcs/prefs/repos; and cat _darcs/prefs/repos)" -d "Darcs repo" -complete -c darcs -a "test predist boringfile binariesfile" -n "contains setpref (commandline -poc)" -d "Set the specified option" -x +complete -c darcs -a "test predist boringfile binariesfile" -n "contains setpref (commandline -pxc)" -d "Set the specified option" -x # # subcommands @@ -41,7 +41,7 @@ complete -c darcs -n __fish_use_subcommand -x -a repair -d 'Repair a corrupted r complete -c darcs -n __fish_use_subcommand -x -a convert -d 'Convert repositories between various formats' function __fish_darcs_use_show_command - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] if contains show $cmd @@ -83,7 +83,7 @@ complete -c darcs -n __fish_darcs_use_show_command -x -a tags -d 'Show all tags complete -c darcs -n __fish_darcs_use_show_command -x -a patch-index -d 'Check integrity of patch index' function __fish_darcs_use_optimize_command - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] if contains optimize $cmd @@ -154,843 +154,843 @@ complete -c darcs -l no-cache -d 'Don\'t use patch caches' # Completions for the 'add' subcommand # -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l boring -d 'Don\'t skip boring files' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l no-boring -d 'Skip boring files [DEFAULT]' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l case-ok -d 'Don\'t refuse to add files differing only in case' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l no-case-ok -d 'Refuse to add files whose name differ only in case [DEFAULT]' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l reserved-ok -d 'Don\'t refuse to add files with Windows-reserved names' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l no-reserved-ok -d 'Refuse to add files with Windows-reserved names [DEFAULT]' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l recursive -s r -d 'Recurse into subdirectories' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l not-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l no-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'add\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l boring -d 'Don\'t skip boring files' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l no-boring -d 'Skip boring files [DEFAULT]' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l case-ok -d 'Don\'t refuse to add files differing only in case' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l no-case-ok -d 'Refuse to add files whose name differ only in case [DEFAULT]' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l reserved-ok -d 'Don\'t refuse to add files with Windows-reserved names' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l no-reserved-ok -d 'Refuse to add files with Windows-reserved names [DEFAULT]' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l recursive -s r -d 'Recurse into subdirectories' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l not-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l no-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'add\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'remove' subcommand # -complete -c darcs -n 'contains \'remove\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'remove\' (commandline -poc)' -l recursive -s r -d 'Recurse into subdirectories' -complete -c darcs -n 'contains \'remove\' (commandline -poc)' -l not-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' -complete -c darcs -n 'contains \'remove\' (commandline -poc)' -l no-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' -complete -c darcs -n 'contains \'remove\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'remove\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'remove\' (commandline -pxc)' -l recursive -s r -d 'Recurse into subdirectories' +complete -c darcs -n 'contains \'remove\' (commandline -pxc)' -l not-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' +complete -c darcs -n 'contains \'remove\' (commandline -pxc)' -l no-recursive -d 'Don\'t recurse into subdirectories [DEFAULT]' +complete -c darcs -n 'contains \'remove\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'move' subcommand # -complete -c darcs -n 'contains \'move\' (commandline -poc)' -l case-ok -d 'Don\'t refuse to add files differing only in case' -complete -c darcs -n 'contains \'move\' (commandline -poc)' -l no-case-ok -d 'Refuse to add files whose name differ only in case [DEFAULT]' -complete -c darcs -n 'contains \'move\' (commandline -poc)' -l reserved-ok -d 'Don\'t refuse to add files with Windows-reserved names' -complete -c darcs -n 'contains \'move\' (commandline -poc)' -l no-reserved-ok -d 'Refuse to add files with Windows-reserved names [DEFAULT]' -complete -c darcs -n 'contains \'move\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'move\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'move\' (commandline -pxc)' -l case-ok -d 'Don\'t refuse to add files differing only in case' +complete -c darcs -n 'contains \'move\' (commandline -pxc)' -l no-case-ok -d 'Refuse to add files whose name differ only in case [DEFAULT]' +complete -c darcs -n 'contains \'move\' (commandline -pxc)' -l reserved-ok -d 'Don\'t refuse to add files with Windows-reserved names' +complete -c darcs -n 'contains \'move\' (commandline -pxc)' -l no-reserved-ok -d 'Refuse to add files with Windows-reserved names [DEFAULT]' +complete -c darcs -n 'contains \'move\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'move\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'replace' subcommand # -complete -c darcs -n 'contains \'replace\' (commandline -poc)' -l token-chars -d 'Define token to contain these characters' -complete -c darcs -n 'contains \'replace\' (commandline -poc)' -l force -s f -d 'Proceed with replace even if 'new' token already exists' -complete -c darcs -n 'contains \'replace\' (commandline -poc)' -l no-force -d 'Don\'t force the replace if it looks scary [DEFAULT]' -complete -c darcs -n 'contains \'replace\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'replace\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'replace\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'replace\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'replace\' (commandline -pxc)' -l token-chars -d 'Define token to contain these characters' +complete -c darcs -n 'contains \'replace\' (commandline -pxc)' -l force -s f -d 'Proceed with replace even if 'new' token already exists' +complete -c darcs -n 'contains \'replace\' (commandline -pxc)' -l no-force -d 'Don\'t force the replace if it looks scary [DEFAULT]' +complete -c darcs -n 'contains \'replace\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'replace\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'replace\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'replace\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'revert' subcommand # -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'revert\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'revert\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'unrevert' subcommand # -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'unrevert\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'unrevert\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'whatsnew' subcommand # -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l summary -s s -d 'Summarize changes' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-summary -d 'Don\'t summarize changes' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l human-readable -d 'Give human-readable output [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l machine-readable -d 'Give machine-readable output' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l look-for-adds -s -l -d 'Look for (non-boring) files that could be added' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l dont-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l look-for-replaces -d 'Look for replaces that could be marked' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l dont-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l look-for-moves -d 'Look for files that may be moved/renamed' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l dont-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l boring -d 'Don\'t skip boring files' -complete -c darcs -n 'contains \'whatsnew\' (commandline -poc)' -l no-boring -d 'Skip boring files [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l summary -s s -d 'Summarize changes' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-summary -d 'Don\'t summarize changes' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l human-readable -d 'Give human-readable output [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l machine-readable -d 'Give machine-readable output' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l look-for-adds -s -l -d 'Look for (non-boring) files that could be added' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l dont-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l look-for-replaces -d 'Look for replaces that could be marked' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l dont-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l look-for-moves -d 'Look for files that may be moved/renamed' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l dont-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l boring -d 'Don\'t skip boring files' +complete -c darcs -n 'contains \'whatsnew\' (commandline -pxc)' -l no-boring -d 'Skip boring files [DEFAULT]' # # Completions for the 'record' subcommand # -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l name -s m -d 'Name of patch' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l author -s A -d 'Specify author id' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l test -d 'Run the test script' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l leave-test-directory -d 'Don\'t remove the test directory [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l remove-test-directory -d 'Remove the test directory' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l pipe -d 'Ask user interactively for the patch metadata' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l ask-deps -d 'Manually select dependencies' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-ask-deps -d 'Automatically select dependencies [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l edit-long-comment -d 'Edit the long comment by default' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l skip-long-comment -d 'Don\'t give a long comment' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l prompt-long-comment -d 'Prompt for whether to edit the long comment' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l look-for-adds -s l -d 'Look for (non-boring) files that could be added' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l dont-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l look-for-replaces -d 'Look for replaces that could be marked' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l dont-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l look-for-moves -d 'Look for files that may be moved/renamed' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l dont-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l logfile -d 'Give patch name and comment in file' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l delete-logfile -d 'Delete the logfile when done' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-delete-logfile -d 'Keep the logfile when done [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l boring -d 'Don\'t skip boring files' -complete -c darcs -n 'contains \'record\' (commandline -poc)' -l no-boring -d 'Skip boring files [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l name -s m -d 'Name of patch' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l author -s A -d 'Specify author id' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l test -d 'Run the test script' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l leave-test-directory -d 'Don\'t remove the test directory [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l remove-test-directory -d 'Remove the test directory' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l pipe -d 'Ask user interactively for the patch metadata' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l ask-deps -d 'Manually select dependencies' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-ask-deps -d 'Automatically select dependencies [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l edit-long-comment -d 'Edit the long comment by default' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l skip-long-comment -d 'Don\'t give a long comment' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l prompt-long-comment -d 'Prompt for whether to edit the long comment' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l look-for-adds -s l -d 'Look for (non-boring) files that could be added' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l dont-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l look-for-replaces -d 'Look for replaces that could be marked' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l dont-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l look-for-moves -d 'Look for files that may be moved/renamed' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l dont-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l logfile -d 'Give patch name and comment in file' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l delete-logfile -d 'Delete the logfile when done' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-delete-logfile -d 'Keep the logfile when done [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l boring -d 'Don\'t skip boring files' +complete -c darcs -n 'contains \'record\' (commandline -pxc)' -l no-boring -d 'Skip boring files [DEFAULT]' # # Completions for the 'unrecord' subcommand # -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l not-in-remote -d 'Select all patches not in the default push/pull repository or at location URL/PATH' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l from-hash -d 'Select changes starting with a patch with HASH' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l last -d 'Select the last NUMBER patches' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l reverse -d 'Show/consider changes in reverse order' -complete -c darcs -n 'contains \'unrecord\' (commandline -poc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l not-in-remote -d 'Select all patches not in the default push/pull repository or at location URL/PATH' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l from-hash -d 'Select changes starting with a patch with HASH' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l last -d 'Select the last NUMBER patches' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l reverse -d 'Show/consider changes in reverse order' +complete -c darcs -n 'contains \'unrecord\' (commandline -pxc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' # # Completions for the 'amend' subcommand # -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l unrecord -d 'Remove changes from the patch' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l record -d 'Add more changes to the patch [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l match -d 'Select a single patch matching PATTERN' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l patch -s p -d 'Select a single patch matching REGEXP' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l test -d 'Run the test script' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l leave-test-directory -d 'Don\'t remove the test directory [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l remove-test-directory -d 'Remove the test directory' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l author -s A -d 'Specify author id' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l select-author -d 'Select author id from a menu' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l name -s m -d 'Name of patch' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l ask-deps -d 'Manually select dependencies' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-ask-deps -d 'Automatically select dependencies [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l edit-long-comment -d 'Edit the long comment by default' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l skip-long-comment -d 'Don\'t give a long comment' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l prompt-long-comment -d 'Prompt for whether to edit the long comment' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l keep-date -d 'Keep the date of the original patch' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-keep-date -d 'Use the current date for the amended patch [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l look-for-adds -s l -d 'Look for (non-boring) files that could be added' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l dont-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l look-for-replaces -d 'Look for replaces that could be marked' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l dont-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l look-for-moves -d 'Look for files that may be moved/renamed' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l dont-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'amend\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l unrecord -d 'Remove changes from the patch' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l record -d 'Add more changes to the patch [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l match -d 'Select a single patch matching PATTERN' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l patch -s p -d 'Select a single patch matching REGEXP' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l test -d 'Run the test script' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l leave-test-directory -d 'Don\'t remove the test directory [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l remove-test-directory -d 'Remove the test directory' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l author -s A -d 'Specify author id' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l select-author -d 'Select author id from a menu' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l name -s m -d 'Name of patch' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l ask-deps -d 'Manually select dependencies' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-ask-deps -d 'Automatically select dependencies [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l edit-long-comment -d 'Edit the long comment by default' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l skip-long-comment -d 'Don\'t give a long comment' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l prompt-long-comment -d 'Prompt for whether to edit the long comment' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l keep-date -d 'Keep the date of the original patch' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-keep-date -d 'Use the current date for the amended patch [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l look-for-adds -s l -d 'Look for (non-boring) files that could be added' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l dont-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-look-for-adds -d 'Don\'t look for any files that could be added [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l look-for-replaces -d 'Look for replaces that could be marked' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l dont-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-look-for-replaces -d 'Don\'t look for any replaces [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l look-for-moves -d 'Look for files that may be moved/renamed' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l dont-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-look-for-moves -d 'Don\'t look for any files that could be moved/renamed [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l unified -s u -d 'Output changes in a darcs-specific format similar to diff -u' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-unified -d 'Output changes in darcs\' usual format [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'amend\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' # # Completions for the 'mark-conflicts' subcommand # -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'mark-conflicts\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'mark-conflicts\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'tag' subcommand # -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l name -s m -d 'Name of patch' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l author -s A -d 'Specify author id' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l pipe -d 'Ask user interactively for the patch metadata' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l edit-long-comment -d 'Edit the long comment by default' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l skip-long-comment -d 'Don\'t give a long comment' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l prompt-long-comment -d 'Prompt for whether to edit the long comment' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l ask-deps -d 'Manually select dependencies' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l no-ask-deps -d 'Automatically select dependencies [DEFAULT]' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'tag\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l name -s m -d 'Name of patch' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l author -s A -d 'Specify author id' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l pipe -d 'Ask user interactively for the patch metadata' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l edit-long-comment -d 'Edit the long comment by default' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l skip-long-comment -d 'Don\'t give a long comment' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l prompt-long-comment -d 'Prompt for whether to edit the long comment' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l ask-deps -d 'Manually select dependencies' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l no-ask-deps -d 'Automatically select dependencies [DEFAULT]' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'tag\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'setpref' subcommand # -complete -c darcs -n 'contains \'setpref\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'setpref\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'setpref\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'setpref\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'diff' subcommand # -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l to-match -d 'Select changes up to a patch matching PATTERN' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l to-patch -d 'Select changes up to a patch matching REGEXP' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l to-hash -d 'Select changes up to a patch with HASH' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l to-tag -d 'Select changes up to a tag matching REGEXP' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l from-hash -d 'Select changes starting with a patch with HASH' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l match -d 'Select a single patch matching PATTERN' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l patch -s p -d 'Select a single patch matching REGEXP' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l last -d 'Select the last NUMBER patches' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l index -s n -d 'Select a range of patches' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l diff-command -d 'Specify diff command (ignores --diff-opts)' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l diff-opts -d 'Options to pass to diff' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l unified -s u -d 'Pass -u option to diff [DEFAULT]' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l no-unified -d 'Output patch in diff\'s dumb format' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l store-in-memory -d 'Do patch application in memory rather than on disk' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l no-store-in-memory -d 'Do patch application on disk [DEFAULT]' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l pause-for-gui -d 'Pause for an external diff or merge command to finish [DEFAULT]' -complete -c darcs -n 'contains \'diff\' (commandline -poc)' -l no-pause-for-gui -d 'Return immediately after external diff or merge command finishes' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l to-match -d 'Select changes up to a patch matching PATTERN' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l to-patch -d 'Select changes up to a patch matching REGEXP' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l to-hash -d 'Select changes up to a patch with HASH' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l to-tag -d 'Select changes up to a tag matching REGEXP' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l from-hash -d 'Select changes starting with a patch with HASH' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l match -d 'Select a single patch matching PATTERN' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l patch -s p -d 'Select a single patch matching REGEXP' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l last -d 'Select the last NUMBER patches' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l index -s n -d 'Select a range of patches' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l diff-command -d 'Specify diff command (ignores --diff-opts)' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l diff-opts -d 'Options to pass to diff' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l unified -s u -d 'Pass -u option to diff [DEFAULT]' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l no-unified -d 'Output patch in diff\'s dumb format' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l store-in-memory -d 'Do patch application in memory rather than on disk' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l no-store-in-memory -d 'Do patch application on disk [DEFAULT]' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l pause-for-gui -d 'Pause for an external diff or merge command to finish [DEFAULT]' +complete -c darcs -n 'contains \'diff\' (commandline -pxc)' -l no-pause-for-gui -d 'Return immediately after external diff or merge command finishes' # # Completions for the 'log' subcommand # -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l to-match -d 'Select changes up to a patch matching PATTERN' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l to-patch -d 'Select changes up to a patch matching REGEXP' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l to-hash -d 'Select changes up to a patch with HASH' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l to-tag -d 'Select changes up to a tag matching REGEXP' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l from-hash -d 'Select changes starting with a patch with HASH' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l last -d 'Select the last NUMBER patches' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l index -s n -d 'Select a range of patches' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l max-count -d 'Return only NUMBER results' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l only-to-files -d 'Show only changes to specified files' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l no-only-to-files -d 'Show changes to all files [DEFAULT]' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l context -d 'Give output suitable for clone --context' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l human-readable -d 'Give human-readable output' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l machine-readable -d 'Give machine-readable output' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l number -d 'Number the changes' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l count -d 'Output count of changes' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l summary -s s -d 'Summarize changes' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l no-summary -d 'Don\'t summarize changes' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l reverse -d 'Show/consider changes in reverse order' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l repo -d 'Specify the repository URL' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l no-http-pipelining -d 'Disable HTTP pipelining' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l with-patch-index -d 'Build patch index [DEFAULT]' -complete -c darcs -n 'contains \'log\' (commandline -poc)' -l no-patch-index -d 'Don\'t build patch index' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l to-match -d 'Select changes up to a patch matching PATTERN' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l to-patch -d 'Select changes up to a patch matching REGEXP' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l to-hash -d 'Select changes up to a patch with HASH' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l to-tag -d 'Select changes up to a tag matching REGEXP' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l from-hash -d 'Select changes starting with a patch with HASH' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l last -d 'Select the last NUMBER patches' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l index -s n -d 'Select a range of patches' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l max-count -d 'Return only NUMBER results' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l only-to-files -d 'Show only changes to specified files' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l no-only-to-files -d 'Show changes to all files [DEFAULT]' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l context -d 'Give output suitable for clone --context' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l human-readable -d 'Give human-readable output' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l machine-readable -d 'Give machine-readable output' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l number -d 'Number the changes' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l count -d 'Output count of changes' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l summary -s s -d 'Summarize changes' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l no-summary -d 'Don\'t summarize changes' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l reverse -d 'Show/consider changes in reverse order' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l repo -d 'Specify the repository URL' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l no-http-pipelining -d 'Disable HTTP pipelining' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l with-patch-index -d 'Build patch index [DEFAULT]' +complete -c darcs -n 'contains \'log\' (commandline -pxc)' -l no-patch-index -d 'Don\'t build patch index' # # Completions for the 'annotate' subcommand # -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l human-readable -d 'Give human-readable output [DEFAULT]' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l machine-readable -d 'Give machine-readable output' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l match -d 'Select a single patch matching PATTERN' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l patch -s p -d 'Select a single patch matching REGEXP' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l tag -s t -d 'Select tag matching REGEXP' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l index -s n -d 'Select one patch' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l with-patch-index -d 'Build patch index [DEFAULT]' -complete -c darcs -n 'contains \'annotate\' (commandline -poc)' -l no-patch-index -d 'Don\'t build patch index' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l human-readable -d 'Give human-readable output [DEFAULT]' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l machine-readable -d 'Give machine-readable output' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l match -d 'Select a single patch matching PATTERN' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l patch -s p -d 'Select a single patch matching REGEXP' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l tag -s t -d 'Select tag matching REGEXP' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l index -s n -d 'Select one patch' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l with-patch-index -d 'Build patch index [DEFAULT]' +complete -c darcs -n 'contains \'annotate\' (commandline -pxc)' -l no-patch-index -d 'Don\'t build patch index' # # Completions for the 'dist' subcommand # -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l dist-name -s d -d 'Name of version' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l zip -d 'Generate zip archive instead of gzip\'ed tar' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l match -d 'Select a single patch matching PATTERN' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l patch -s p -d 'Select a single patch matching REGEXP' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l tag -s t -d 'Select tag matching REGEXP' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l index -s n -d 'Select one patch' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l store-in-memory -d 'Do patch application in memory rather than on disk' -complete -c darcs -n 'contains \'dist\' (commandline -poc)' -l no-store-in-memory -d 'Do patch application on disk [DEFAULT]' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l dist-name -s d -d 'Name of version' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l zip -d 'Generate zip archive instead of gzip\'ed tar' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l match -d 'Select a single patch matching PATTERN' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l patch -s p -d 'Select a single patch matching REGEXP' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l tag -s t -d 'Select tag matching REGEXP' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l index -s n -d 'Select one patch' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l store-in-memory -d 'Do patch application in memory rather than on disk' +complete -c darcs -n 'contains \'dist\' (commandline -pxc)' -l no-store-in-memory -d 'Do patch application on disk [DEFAULT]' # # Completions for the 'show contents' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'contents\' (commandline -poc)' -l match -d 'Select a single patch matching PATTERN' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'contents\' (commandline -poc)' -l patch -s p -d 'Select a single patch matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'contents\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'contents\' (commandline -poc)' -l tag -s t -d 'Select tag matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'contents\' (commandline -poc)' -l index -s n -d 'Select one patch' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'contents\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'contents\' (commandline -pxc)' -l match -d 'Select a single patch matching PATTERN' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'contents\' (commandline -pxc)' -l patch -s p -d 'Select a single patch matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'contents\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'contents\' (commandline -pxc)' -l tag -s t -d 'Select tag matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'contents\' (commandline -pxc)' -l index -s n -d 'Select one patch' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'contents\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' # # Completions for the 'show dependencies' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l from-hash -d 'Select changes starting with a patch with HASH' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l last -d 'Select the last NUMBER patches' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'dependencies\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l from-hash -d 'Select changes starting with a patch with HASH' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l last -d 'Select the last NUMBER patches' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'dependencies\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' # # Completions for the 'show files' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l files -d 'Include files in output [DEFAULT]' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l no-files -d 'Don\'t include files in output' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l directories -d 'Include directories in output [DEFAULT]' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l no-directories -d 'Don\'t include directories in output' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l pending -d 'Reflect pending patches in output [DEFAULT]' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l no-pending -d 'Only include recorded patches in output' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l null -s 0 -d 'Separate file names by NUL characters' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l match -d 'Select a single patch matching PATTERN' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l patch -s p -d 'Select a single patch matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l tag -s t -d 'Select tag matching REGEXP' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l index -s n -d 'Select one patch' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'files\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l files -d 'Include files in output [DEFAULT]' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l no-files -d 'Don\'t include files in output' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l directories -d 'Include directories in output [DEFAULT]' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l no-directories -d 'Don\'t include directories in output' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l pending -d 'Reflect pending patches in output [DEFAULT]' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l no-pending -d 'Only include recorded patches in output' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l null -s 0 -d 'Separate file names by NUL characters' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l match -d 'Select a single patch matching PATTERN' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l patch -s p -d 'Select a single patch matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l tag -s t -d 'Select tag matching REGEXP' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l index -s n -d 'Select one patch' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'files\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' # # Completions for the 'show index' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'index\' (commandline -poc)' -l null -s 0 -d 'Separate file names by NUL characters' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'index\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'index\' (commandline -pxc)' -l null -s 0 -d 'Separate file names by NUL characters' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'index\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' # # Completions for the 'show pristine' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'pristine\' (commandline -poc)' -l null -s 0 -d 'Separate file names by NUL characters' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'pristine\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'pristine\' (commandline -pxc)' -l null -s 0 -d 'Separate file names by NUL characters' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'pristine\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' # # Completions for the 'show repo' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'repo\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'repo\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'repo\' (commandline -poc)' -l enum-patches -d 'Include statistics requiring enumeration of patches [DEFAULT]' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'repo\' (commandline -poc)' -l no-enum-patches -d 'Don\'t include statistics requiring enumeration of patches' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'repo\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'repo\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'repo\' (commandline -pxc)' -l enum-patches -d 'Include statistics requiring enumeration of patches [DEFAULT]' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'repo\' (commandline -pxc)' -l no-enum-patches -d 'Don\'t include statistics requiring enumeration of patches' # # Completions for the 'show authors' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'authors\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'authors\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' # # Completions for the 'show tags' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'tags\' (commandline -poc)' -l repo -d 'Specify the repository URL' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'tags\' (commandline -pxc)' -l repo -d 'Specify the repository URL' # # Completions for the 'show patch-index' subcommand # -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'patch-index\' (commandline -poc)' -l null -s 0 -d 'Separate file names by NUL characters' -complete -c darcs -n 'contains \'show\' (commandline -poc) && contains \'patch-index\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'patch-index\' (commandline -pxc)' -l null -s 0 -d 'Separate file names by NUL characters' +complete -c darcs -n 'contains \'show\' (commandline -pxc) && contains \'patch-index\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' # # Completions for the 'pull' subcommand # -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l reorder-patches -d 'Reorder the patches in the repository' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-reorder-patches -d 'Don\'t reorder the patches in the repository [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l mark-conflicts -d 'Mark conflicts [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l allow-conflicts -d 'Allow conflicts, but don\'t mark them' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l dont-allow-conflicts -d 'Fail if there are patches that would create conflicts' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-allow-conflicts -d 'Fail if there are patches that would create conflicts' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-resolve-conflicts -d 'Fail if there are patches that would create conflicts' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l skip-conflicts -d 'Filter out any patches that would create conflicts' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l external-merge -d 'Use external tool to merge conflicts' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l test -d 'Run the test script' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l summary -s s -d 'Summarize changes' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-summary -d 'Don\'t summarize changes' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l set-default -d 'Set default repository' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-set-default -d 'Don\'t set default repository' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l ignore-unrelated-repos -d 'Do not check if repositories are unrelated' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l intersection -d 'Take intersection of all repositories' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l union -d 'Take union of all repositories [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l complement -d 'Take complement of repositories (in order listed)' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l remote-repo -d 'Specify the remote repository URL to work with' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l restrict-paths -d 'Don\'t allow darcs to touch external files or repo metadata [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l dont-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l reverse -d 'Show/consider changes in reverse order' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l pause-for-gui -d 'Pause for an external diff or merge command to finish [DEFAULT]' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-pause-for-gui -d 'Return immediately after external diff or merge command finishes' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l no-http-pipelining -d 'Disable HTTP pipelining' -complete -c darcs -n 'contains \'pull\' (commandline -poc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l reorder-patches -d 'Reorder the patches in the repository' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-reorder-patches -d 'Don\'t reorder the patches in the repository [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l mark-conflicts -d 'Mark conflicts [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l allow-conflicts -d 'Allow conflicts, but don\'t mark them' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l dont-allow-conflicts -d 'Fail if there are patches that would create conflicts' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-allow-conflicts -d 'Fail if there are patches that would create conflicts' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-resolve-conflicts -d 'Fail if there are patches that would create conflicts' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l skip-conflicts -d 'Filter out any patches that would create conflicts' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l external-merge -d 'Use external tool to merge conflicts' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l test -d 'Run the test script' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l summary -s s -d 'Summarize changes' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-summary -d 'Don\'t summarize changes' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l set-default -d 'Set default repository' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-set-default -d 'Don\'t set default repository' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l ignore-unrelated-repos -d 'Do not check if repositories are unrelated' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l intersection -d 'Take intersection of all repositories' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l union -d 'Take union of all repositories [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l complement -d 'Take complement of repositories (in order listed)' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l remote-repo -d 'Specify the remote repository URL to work with' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l restrict-paths -d 'Don\'t allow darcs to touch external files or repo metadata [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l dont-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l reverse -d 'Show/consider changes in reverse order' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l pause-for-gui -d 'Pause for an external diff or merge command to finish [DEFAULT]' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-pause-for-gui -d 'Return immediately after external diff or merge command finishes' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l no-http-pipelining -d 'Disable HTTP pipelining' +complete -c darcs -n 'contains \'pull\' (commandline -pxc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' # # Completions for the 'obliterate' subcommand # -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l not-in-remote -d 'Select all patches not in the default push/pull repository or at location URL/PATH' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l from-hash -d 'Select changes starting with a patch with HASH' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l last -d 'Select the last NUMBER patches' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l summary -s s -d 'Summarize changes' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l no-summary -d 'Don\'t summarize changes' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l output -s o -d 'Specify output filename' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l output-auto-name -s O -d 'Output to automatically named file in DIRECTORY, default: current directory' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l minimize -d 'Minimize context of patch bundle [DEFAULT]' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l no-minimize -d 'Don\'t minimize context of patch bundle' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l reverse -d 'Show/consider changes in reverse order' -complete -c darcs -n 'contains \'obliterate\' (commandline -poc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l not-in-remote -d 'Select all patches not in the default push/pull repository or at location URL/PATH' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l from-hash -d 'Select changes starting with a patch with HASH' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l last -d 'Select the last NUMBER patches' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l summary -s s -d 'Summarize changes' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l no-summary -d 'Don\'t summarize changes' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l output -s o -d 'Specify output filename' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l output-auto-name -s O -d 'Output to automatically named file in DIRECTORY, default: current directory' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l minimize -d 'Minimize context of patch bundle [DEFAULT]' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l no-minimize -d 'Don\'t minimize context of patch bundle' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l reverse -d 'Show/consider changes in reverse order' +complete -c darcs -n 'contains \'obliterate\' (commandline -pxc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' # # Completions for the 'rollback' subcommand # -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l from-hash -d 'Select changes starting with a patch with HASH' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l last -d 'Select the last NUMBER patches' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'rollback\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l from-match -d 'Select changes starting with a patch matching PATTERN' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l from-patch -d 'Select changes starting with a patch matching REGEXP' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l from-hash -d 'Select changes starting with a patch with HASH' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l from-tag -d 'Select changes starting with a tag matching REGEXP' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l last -d 'Select the last NUMBER patches' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'rollback\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'push' subcommand # -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l sign -d 'Sign the patch with your gpg key' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l sign-as -d 'Sign the patch with a given keyid' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l sign-ssl -d 'Sign the patch using openssl with a given private key' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l dont-sign -d 'Don\'t sign the patch [DEFAULT]' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-sign -d 'Don\'t sign the patch [DEFAULT]' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l summary -s s -d 'Summarize changes' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-summary -d 'Don\'t summarize changes' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l set-default -d 'Set default repository' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-set-default -d 'Don\'t set default repository' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l ignore-unrelated-repos -d 'Do not check if repositories are unrelated' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l apply-as -d 'Apply patch as another user using sudo' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-apply-as -d 'Don\'t use sudo to apply as another user [DEFAULT]' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l remote-repo -d 'Specify the remote repository URL to work with' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l reverse -d 'Show/consider changes in reverse order' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l no-http-pipelining -d 'Disable HTTP pipelining' -complete -c darcs -n 'contains \'push\' (commandline -poc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l sign -d 'Sign the patch with your gpg key' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l sign-as -d 'Sign the patch with a given keyid' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l sign-ssl -d 'Sign the patch using openssl with a given private key' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l dont-sign -d 'Don\'t sign the patch [DEFAULT]' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-sign -d 'Don\'t sign the patch [DEFAULT]' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l summary -s s -d 'Summarize changes' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-summary -d 'Don\'t summarize changes' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l set-default -d 'Set default repository' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-set-default -d 'Don\'t set default repository' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l ignore-unrelated-repos -d 'Do not check if repositories are unrelated' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l apply-as -d 'Apply patch as another user using sudo' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-apply-as -d 'Don\'t use sudo to apply as another user [DEFAULT]' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l remote-repo -d 'Specify the remote repository URL to work with' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l reverse -d 'Show/consider changes in reverse order' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l no-http-pipelining -d 'Disable HTTP pipelining' +complete -c darcs -n 'contains \'push\' (commandline -pxc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' # # Completions for the 'send' subcommand # -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l to -d 'Specify destination email' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l cc -d 'Mail results to additional EMAIL(s)' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l from -d 'Specify email address' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l subject -d 'Specify mail subject' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l in-reply-to -d 'Specify in-reply-to header' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l author -s A -d 'Specify author id' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l charset -d 'Specify mail charset' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l mail -d 'Send patch using sendmail' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l sendmail-command -d 'Specify sendmail command' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l output -s o -d 'Specify output filename' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l output-auto-name -s O -d 'Output to automatically named file in DIRECTORY, default: current directory' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l sign -d 'Sign the patch with your gpg key' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l sign-as -d 'Sign the patch with a given keyid' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l sign-ssl -d 'Sign the patch using openssl with a given private key' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l dont-sign -d 'Don\'t sign the patch [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-sign -d 'Don\'t sign the patch [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l summary -s s -d 'Summarize changes' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-summary -d 'Don\'t summarize changes' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l edit-description -d 'Edit the patch bundle description [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l dont-edit-description -d 'Don\'t edit the patch bundle description' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-edit-description -d 'Don\'t edit the patch bundle description' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l set-default -d 'Set default repository' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-set-default -d 'Don\'t set default repository' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l minimize -d 'Minimize context of patch bundle [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-minimize -d 'Don\'t minimize context of patch bundle' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l ignore-unrelated-repos -d 'Do not check if repositories are unrelated' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l logfile -d 'Give patch name and comment in file' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l delete-logfile -d 'Delete the logfile when done' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-delete-logfile -d 'Keep the logfile when done [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l remote-repo -d 'Specify the remote repository URL to work with' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l context -d 'Send to context stored in FILENAME' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l reverse -d 'Show/consider changes in reverse order' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l no-http-pipelining -d 'Disable HTTP pipelining' -complete -c darcs -n 'contains \'send\' (commandline -poc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-deps -d 'Don\'t automatically fulfill dependencies' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l auto-deps -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l dont-prompt-for-dependencies -d 'Don\'t ask about patches that are depended on by matched patches (with --match or --patch)' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l prompt-deps -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l prompt-for-dependencies -d 'Prompt about patches that are depended on by matched patches [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l to -d 'Specify destination email' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l cc -d 'Mail results to additional EMAIL(s)' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l from -d 'Specify email address' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l subject -d 'Specify mail subject' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l in-reply-to -d 'Specify in-reply-to header' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l author -s A -d 'Specify author id' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l charset -d 'Specify mail charset' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l mail -d 'Send patch using sendmail' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l sendmail-command -d 'Specify sendmail command' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l output -s o -d 'Specify output filename' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l output-auto-name -s O -d 'Output to automatically named file in DIRECTORY, default: current directory' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l sign -d 'Sign the patch with your gpg key' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l sign-as -d 'Sign the patch with a given keyid' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l sign-ssl -d 'Sign the patch using openssl with a given private key' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l dont-sign -d 'Don\'t sign the patch [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-sign -d 'Don\'t sign the patch [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l summary -s s -d 'Summarize changes' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-summary -d 'Don\'t summarize changes' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l edit-description -d 'Edit the patch bundle description [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l dont-edit-description -d 'Don\'t edit the patch bundle description' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-edit-description -d 'Don\'t edit the patch bundle description' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l set-default -d 'Set default repository' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-set-default -d 'Don\'t set default repository' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l minimize -d 'Minimize context of patch bundle [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-minimize -d 'Don\'t minimize context of patch bundle' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l ignore-unrelated-repos -d 'Do not check if repositories are unrelated' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l logfile -d 'Give patch name and comment in file' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l delete-logfile -d 'Delete the logfile when done' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-delete-logfile -d 'Keep the logfile when done [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l remote-repo -d 'Specify the remote repository URL to work with' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l context -d 'Send to context stored in FILENAME' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l reverse -d 'Show/consider changes in reverse order' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l no-http-pipelining -d 'Disable HTTP pipelining' +complete -c darcs -n 'contains \'send\' (commandline -pxc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' # # Completions for the 'apply' subcommand # -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l verify -d 'Verify that the patch was signed by a key in PUBRING' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l verify-ssl -d 'Verify using openSSL with authorized keys from file KEYS' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-verify -d 'Don\'t verify patch signature [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l reorder-patches -d 'Reorder the patches in the repository' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-reorder-patches -d 'Don\'t reorder the patches in the repository [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l all -s a -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-interactive -d 'Answer yes to all patches' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l interactive -s i -d 'Prompt user interactively' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l xml-output -d 'Generate XML formatted output' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l matches -d 'Select patches matching PATTERN' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l patches -s p -d 'Select patches matching REGEXP' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l tags -s t -d 'Select tags matching REGEXP' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l hash -s h -d 'Select a single patch with HASH' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l mark-conflicts -d 'Mark conflicts' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l allow-conflicts -d 'Allow conflicts, but don\'t mark them' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l dont-allow-conflicts -d 'Fail if there are patches that would create conflicts [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-allow-conflicts -d 'Fail if there are patches that would create conflicts [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-resolve-conflicts -d 'Fail if there are patches that would create conflicts [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l skip-conflicts -d 'Filter out any patches that would create conflicts' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l external-merge -d 'Use external tool to merge conflicts' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l test -d 'Run the test script' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l leave-test-directory -d 'Don\'t remove the test directory [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l remove-test-directory -d 'Remove the test directory' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l repodir -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l reply -d 'Reply to email-based patch using FROM address' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l cc -d 'Mail results to additional EMAIL(s). Requires --reply' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l happy-forwarding -d 'Forward unsigned messages without extra header' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-happy-forwarding -d 'Don\'t forward unsigned messages without extra header [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l mail -d 'Send patch using sendmail' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l sendmail-command -d 'Specify sendmail command' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l compress -d 'Compress patch data [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l dont-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-compress -d 'Don\'t compress patch data' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l restrict-paths -d 'Don\'t allow darcs to touch external files or repo metadata [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l dont-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l reverse -d 'Show/consider changes in reverse order' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l pause-for-gui -d 'Pause for an external diff or merge command to finish [DEFAULT]' -complete -c darcs -n 'contains \'apply\' (commandline -poc)' -l no-pause-for-gui -d 'Return immediately after external diff or merge command finishes' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l verify -d 'Verify that the patch was signed by a key in PUBRING' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l verify-ssl -d 'Verify using openSSL with authorized keys from file KEYS' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-verify -d 'Don\'t verify patch signature [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l reorder-patches -d 'Reorder the patches in the repository' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-reorder-patches -d 'Don\'t reorder the patches in the repository [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l all -s a -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-interactive -d 'Answer yes to all patches' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l interactive -s i -d 'Prompt user interactively' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l xml-output -d 'Generate XML formatted output' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l matches -d 'Select patches matching PATTERN' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l patches -s p -d 'Select patches matching REGEXP' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l tags -s t -d 'Select tags matching REGEXP' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l hash -s h -d 'Select a single patch with HASH' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l mark-conflicts -d 'Mark conflicts' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l allow-conflicts -d 'Allow conflicts, but don\'t mark them' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l dont-allow-conflicts -d 'Fail if there are patches that would create conflicts [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-allow-conflicts -d 'Fail if there are patches that would create conflicts [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-resolve-conflicts -d 'Fail if there are patches that would create conflicts [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l skip-conflicts -d 'Filter out any patches that would create conflicts' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l external-merge -d 'Use external tool to merge conflicts' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l test -d 'Run the test script' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-test -d 'Don\'t run the test script [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l leave-test-directory -d 'Don\'t remove the test directory [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l remove-test-directory -d 'Remove the test directory' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l repodir -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l reply -d 'Reply to email-based patch using FROM address' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l cc -d 'Mail results to additional EMAIL(s). Requires --reply' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l happy-forwarding -d 'Forward unsigned messages without extra header' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-happy-forwarding -d 'Don\'t forward unsigned messages without extra header [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l mail -d 'Send patch using sendmail' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l sendmail-command -d 'Specify sendmail command' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l compress -d 'Compress patch data [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l dont-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-compress -d 'Don\'t compress patch data' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l restrict-paths -d 'Don\'t allow darcs to touch external files or repo metadata [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l dont-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-restrict-paths -d 'Allow darcs to modify any file or directory (unsafe)' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l reverse -d 'Show/consider changes in reverse order' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-reverse -d 'Show/consider changes in the usual order [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l pause-for-gui -d 'Pause for an external diff or merge command to finish [DEFAULT]' +complete -c darcs -n 'contains \'apply\' (commandline -pxc)' -l no-pause-for-gui -d 'Return immediately after external diff or merge command finishes' # # Completions for the 'clone' subcommand # -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l repo-name -d 'Path of output directory' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l lazy -d 'Get patch files only as needed' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l complete -d 'Get a complete copy of the repository' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l to-match -d 'Select changes up to a patch matching PATTERN' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l to-patch -d 'Select changes up to a patch matching REGEXP' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l to-hash -d 'Select changes up to a patch with HASH' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l tag -s t -d 'Select tag matching REGEXP' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l context -d 'Version specified by the context in FILENAME' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l set-default -d 'Set default repository' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l no-set-default -d 'Don\'t set default repository' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l packs -d 'Use repository packs [DEFAULT]' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l no-packs -d 'Don\'t use repository packs' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l with-patch-index -d 'Build patch index' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l no-http-pipelining -d 'Disable HTTP pipelining' -complete -c darcs -n 'contains \'clone\' (commandline -poc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l repo-name -d 'Path of output directory' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l lazy -d 'Get patch files only as needed' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l complete -d 'Get a complete copy of the repository' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l to-match -d 'Select changes up to a patch matching PATTERN' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l to-patch -d 'Select changes up to a patch matching REGEXP' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l to-hash -d 'Select changes up to a patch with HASH' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l tag -s t -d 'Select tag matching REGEXP' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l context -d 'Version specified by the context in FILENAME' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l set-default -d 'Set default repository' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l no-set-default -d 'Don\'t set default repository' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l packs -d 'Use repository packs [DEFAULT]' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l no-packs -d 'Don\'t use repository packs' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l with-patch-index -d 'Build patch index' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l no-http-pipelining -d 'Disable HTTP pipelining' +complete -c darcs -n 'contains \'clone\' (commandline -pxc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' # # Completions for the 'initialize' subcommand # -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l darcs-2 -d 'Standard darcs patch format [DEFAULT]' -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l darcs-1 -d 'Older patch format (for compatibility)' -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l with-patch-index -d 'Build patch index' -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' -complete -c darcs -n 'contains \'initialize\' (commandline -poc)' -l hashed -d 'Deprecated, use --darcs-1 instead' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l darcs-2 -d 'Standard darcs patch format [DEFAULT]' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l darcs-1 -d 'Older patch format (for compatibility)' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l with-patch-index -d 'Build patch index' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' +complete -c darcs -n 'contains \'initialize\' (commandline -pxc)' -l hashed -d 'Deprecated, use --darcs-1 instead' # # Completions for the 'optimize' subcommands # -complete -c darcs -n 'contains \'optimize\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'optimize\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'optimize\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'optimize\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'optimize relink' subcommand # -complete -c darcs -n 'contains \'optimize\' (commandline -poc) && contains \'relink\' (commandline -poc)' -l sibling -d 'Specify a sibling directory' +complete -c darcs -n 'contains \'optimize\' (commandline -pxc) && contains \'relink\' (commandline -pxc)' -l sibling -d 'Specify a sibling directory' # # Completions for the 'repair' subcommand # -complete -c darcs -n 'contains \'repair\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' -complete -c darcs -n 'contains \'repair\' (commandline -poc)' -l ignore-times -d 'Don\'t trust the file modification times' -complete -c darcs -n 'contains \'repair\' (commandline -poc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' -complete -c darcs -n 'contains \'repair\' (commandline -poc)' -l myers -d 'Use myers diff algorithm' -complete -c darcs -n 'contains \'repair\' (commandline -poc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' -complete -c darcs -n 'contains \'repair\' (commandline -poc)' -l dry-run -d 'Don\'t actually take the action' -complete -c darcs -n 'contains \'repair\' (commandline -poc)' -l umask -d 'Specify umask to use when writing' +complete -c darcs -n 'contains \'repair\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Specify the repository directory in which to run' +complete -c darcs -n 'contains \'repair\' (commandline -pxc)' -l ignore-times -d 'Don\'t trust the file modification times' +complete -c darcs -n 'contains \'repair\' (commandline -pxc)' -l no-ignore-times -d 'Trust modification times to find modified files [DEFAULT]' +complete -c darcs -n 'contains \'repair\' (commandline -pxc)' -l myers -d 'Use myers diff algorithm' +complete -c darcs -n 'contains \'repair\' (commandline -pxc)' -l patience -d 'Use patience diff algorithm [DEFAULT]' +complete -c darcs -n 'contains \'repair\' (commandline -pxc)' -l dry-run -d 'Don\'t actually take the action' +complete -c darcs -n 'contains \'repair\' (commandline -pxc)' -l umask -d 'Specify umask to use when writing' # # Completions for the 'convert darcs-2' subcommand # -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l repo-name -d 'Path of output directory' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l no-http-pipelining -d 'Disable HTTP pipelining' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l with-patch-index -d 'Build patch index' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'darcs-2\' (commandline -poc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l repo-name -d 'Path of output directory' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l no-http-pipelining -d 'Disable HTTP pipelining' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l with-patch-index -d 'Build patch index' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'darcs-2\' (commandline -pxc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' # # Completions for the 'convert export' subcommand # -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'export\' (commandline -poc)' -l repo-name -d 'Path of output directory' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'export\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'export\' (commandline -poc)' -l read-marks -d 'Continue conversion, previously checkpointed by --write-marks' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'export\' (commandline -poc)' -l write-marks -d 'Checkpoint conversion to continue it later' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'export\' (commandline -poc)' -l no-http-pipelining -d 'Disable HTTP pipelining' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'export\' (commandline -poc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'export\' (commandline -pxc)' -l repo-name -d 'Path of output directory' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'export\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'export\' (commandline -pxc)' -l read-marks -d 'Continue conversion, previously checkpointed by --write-marks' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'export\' (commandline -pxc)' -l write-marks -d 'Checkpoint conversion to continue it later' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'export\' (commandline -pxc)' -l no-http-pipelining -d 'Disable HTTP pipelining' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'export\' (commandline -pxc)' -l remote-darcs -d 'Name of the darcs executable on the remote server' # # Completions for the 'convert import' subcommand # -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l repo-name -d 'Path of output directory' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l set-scripts-executable -d 'Make scripts executable' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l darcs-2 -d 'Standard darcs patch format [DEFAULT]' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l darcs-1 -d 'Older patch format (for compatibility)' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l with-patch-index -d 'Build patch index' -complete -c darcs -n 'contains \'convert\' (commandline -poc) && contains \'import\' (commandline -poc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l repo-name -d 'Path of output directory' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l repodir -x -a '(__fish_complete_directories (commandline -ct))' -d 'Path of output directory' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l set-scripts-executable -d 'Make scripts executable' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l dont-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l no-set-scripts-executable -d 'Don\'t make scripts executable [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l darcs-2 -d 'Standard darcs patch format [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l darcs-1 -d 'Older patch format (for compatibility)' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l with-working-dir -d 'Create a working tree (normal repository) [DEFAULT]' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l no-working-dir -d 'Do not create a working tree (bare repository)' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l with-patch-index -d 'Build patch index' +complete -c darcs -n 'contains \'convert\' (commandline -pxc) && contains \'import\' (commandline -pxc)' -l no-patch-index -d 'Don\'t build patch index [DEFAULT]' diff --git a/share/completions/doas.fish b/share/completions/doas.fish index ab75421b6..e754f7dc7 100644 --- a/share/completions/doas.fish +++ b/share/completions/doas.fish @@ -3,7 +3,7 @@ # function __fish_doas_print_remaining_args - set -l tokens (commandline -opc) (commandline -ct) + set -l tokens (commandline -xpc) (commandline -ct) set -e tokens[1] # These are all the options mentioned in the man page for openbsd's "doas" (in that order). set -l opts a= C= L n s u= diff --git a/share/completions/dscacheutil.fish b/share/completions/dscacheutil.fish index 72462c565..4f4e7107f 100644 --- a/share/completions/dscacheutil.fish +++ b/share/completions/dscacheutil.fish @@ -1,7 +1,7 @@ # dscacheutil complete -c dscacheutil -f -d 'Directory Service cache utility' -complete -c dscacheutil -s h -d 'lists options' -f -n '[ (commandline -opc | count) -le 1 ]' -complete -c dscacheutil -s q -d 'initiate query' -f -x -n '[ (commandline -opc | count) -le 1 ] || contains -- -a (commandline -opc) || contains -- -q (commandline -opc) && [ (commandline -opc | count) -lt 3 ]' -a " +complete -c dscacheutil -s h -d 'lists options' -f -n '[ (commandline -xpc | count) -le 1 ]' +complete -c dscacheutil -s q -d 'initiate query' -f -x -n '[ (commandline -xpc | count) -le 1 ] || contains -- -a (commandline -xpc) || contains -- -q (commandline -xpc) && [ (commandline -xpc | count) -lt 3 ]' -a " group\t'name or gid' host\t'name or ip address' mount\t'name' @@ -10,10 +10,10 @@ rpc\t'name or number' service\t'name or port' user\t'name or uid' " -complete -c dscacheutil -s a -d '-q: specific key & value' -f -n 'contains -- -q (commandline -opc)' -complete -c dscacheutil -o cachedump -d 'dump cache overview' -f -n '[ (commandline -opc | count) -le 1 ]' -complete -c dscacheutil -o buckets -d 'show hash buckets' -f -n 'contains -- -cachedump (commandline -opc)' -complete -c dscacheutil -o entries -d '-cachedump: cache entries' -f -n 'contains -- -cachedump (commandline -opc)' -a " +complete -c dscacheutil -s a -d '-q: specific key & value' -f -n 'contains -- -q (commandline -xpc)' +complete -c dscacheutil -o cachedump -d 'dump cache overview' -f -n '[ (commandline -xpc | count) -le 1 ]' +complete -c dscacheutil -o buckets -d 'show hash buckets' -f -n 'contains -- -cachedump (commandline -xpc)' +complete -c dscacheutil -o entries -d '-cachedump: cache entries' -f -n 'contains -- -cachedump (commandline -xpc)' -a " group\t'name or gid' host\t'name or ip address' mount\t'name' @@ -22,6 +22,6 @@ rpc\t'name or number' service\t'name or port' user\t'name or uid' " -complete -c dscacheutil -o configuration -d 'print current config' -f -n '[ (commandline -opc | count) -le 1 ]' -complete -c dscacheutil -o statistics -d 'prints cache stats' -f -n '[ (commandline -opc | count) -le 1 ]' -complete -c dscacheutil -o flushcache -d 'reset cache (DNS )' -f -k -n '[ (commandline -opc | count) -le 1 ]' +complete -c dscacheutil -o configuration -d 'print current config' -f -n '[ (commandline -xpc | count) -le 1 ]' +complete -c dscacheutil -o statistics -d 'prints cache stats' -f -n '[ (commandline -xpc | count) -le 1 ]' +complete -c dscacheutil -o flushcache -d 'reset cache (DNS )' -f -k -n '[ (commandline -xpc | count) -le 1 ]' diff --git a/share/completions/ebuild.fish b/share/completions/ebuild.fish index 1c6eba3d1..4e6204515 100644 --- a/share/completions/ebuild.fish +++ b/share/completions/ebuild.fish @@ -1,5 +1,5 @@ function __fish_seen_ebuild_arg -d "Test if an ebuild-argument has been given in the current commandline" - commandline -opc | string match -q '*.ebuild' + commandline -xpc | string match -q '*.ebuild' end ## Opts diff --git a/share/completions/env.fish b/share/completions/env.fish index 5648d1579..ffd14e3a9 100644 --- a/share/completions/env.fish +++ b/share/completions/env.fish @@ -5,7 +5,7 @@ end # Returns 0 if we're after `env` and all previous tokens have an equal sign function __fish_env_defining_vars - not string match -ev -- = (commandline -op)[2..-2] | string match -rq . + not string match -ev -- = (commandline -xp)[2..-2] | string match -rq . end # Returns 0 if we're after `env` and all previous tokens have not yet contained an equal sign @@ -17,7 +17,7 @@ end function __fish_env_redefine_vars set -l vars (set --names -x) - set cmdline "$(commandline -op)" + set cmdline "$(commandline -xp)" for var in $vars if not string match -e -- $var= $cmdline echo $var= @@ -56,7 +56,7 @@ end # Get the text after all env arguments and variables, so we can complete it as a regular command function __fish_env_remaining_args -V is_gnu - set -l argv (commandline -opc) (commandline -ct) + set -l argv (commandline -xpc) (commandline -ct) if set -q is_gnu[1] argparse -s i/ignore-environment u/unset= help version -- $argv 2>/dev/null or return 0 diff --git a/share/completions/eselect.fish b/share/completions/eselect.fish index a89f8514a..741ca163a 100644 --- a/share/completions/eselect.fish +++ b/share/completions/eselect.fish @@ -9,13 +9,13 @@ end function __fish_complete_eselect_actions set -l sedregexp 's/^ ([a-zA-Z0-9_-]*)[ ]*/\1\t/g' - set -l cmdl (commandline -poc) + set -l cmdl (commandline -pxc) __fish_eselect_cmd $cmdl[2..-1] usage | string match -r '^ [^ -]' | sed -r $sedregexp end function __fish_complete_eselect_action_options set -l parseregexp 's/^ ([a-zA-Z0-9_-]*)[ ]*/\1\t/g' - set -l cmdl (commandline -poc) + set -l cmdl (commandline -pxc) # Alter further php completion if test (__fish_print_cmd_args_without_options)[2] = php @@ -44,7 +44,7 @@ end function __fish_complete_eselect_targets set -l sedregexp 's/^ \[([0-9]+)\][ ]*/\1\t/g' - set -l cmdl (commandline -poc) + set -l cmdl (commandline -pxc) # Disable further php completion if test (__fish_print_cmd_args_without_options)[2] = php diff --git a/share/completions/exec.fish b/share/completions/exec.fish index 73b535ee0..c07dc9810 100644 --- a/share/completions/exec.fish +++ b/share/completions/exec.fish @@ -1,2 +1,2 @@ -complete -c exec -n 'test (count (commandline -opc)) -eq 1' -s h -l help -d 'Display help and exit' +complete -c exec -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit' complete -c exec -xa "(__fish_complete_subcommand)" diff --git a/share/completions/exercism.fish b/share/completions/exercism.fish index 2f2a5ca0c..b8e39c8e2 100644 --- a/share/completions/exercism.fish +++ b/share/completions/exercism.fish @@ -1,5 +1,5 @@ function __fish_exercism_no_subcommand -d 'Test if exercism has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i demo debug configure fetch restore submit unsubmit tracks download help return 1 end diff --git a/share/completions/exif.fish b/share/completions/exif.fish index dd893b82b..f5468e4ac 100644 --- a/share/completions/exif.fish +++ b/share/completions/exif.fish @@ -1,5 +1,5 @@ function __fish_exif_target_file_tags - for target in (string match -v -- '-*' (commandline -po)[2..]) + for target in (string match -v -- '-*' (commandline -px)[2..]) string replace -f '*' '' (exif --list-tags "$target" 2> /dev/null)[2..] | string replace -r '(\s+-){4}' '' | string split -m1 ' ' | string trim end end diff --git a/share/completions/fastboot.fish b/share/completions/fastboot.fish index a9f4ee401..25bb1bd83 100644 --- a/share/completions/fastboot.fish +++ b/share/completions/fastboot.fish @@ -1,7 +1,7 @@ set -l commands flashall getvar oem flashing reboot update erase format devices flash get_staged help stage boot fetch function __fish_fastboot_list_partition_or_file - set -l tokens (commandline -opc) + set -l tokens (commandline -xpc) # if last 2 token is flash, then list file if test (count $tokens) -gt 2 if test $tokens[-2] = flash diff --git a/share/completions/ffmpeg.fish b/share/completions/ffmpeg.fish index 8e3a0c9b6..903416385 100644 --- a/share/completions/ffmpeg.fish +++ b/share/completions/ffmpeg.fish @@ -1,5 +1,5 @@ function __fish_ffmpeg_last_arg - echo (commandline -co)[-1] + echo (commandline -cx)[-1] end # Allow completions to match against an argument that includes a stream specifier, e.g. -c:v:2 @@ -56,7 +56,7 @@ function __fish_ffmpeg_pix_fmts # could be to instead provide a second input, but we can rule out an output if no input has # been specified set -l regex_filter '.' - if contains -- -i (commandline -co) + if contains -- -i (commandline -cx) set regex_filter '^I' end ffmpeg -hide_banner -loglevel quiet -pix_fmts | @@ -290,7 +290,7 @@ function __fish_ffmpeg_complete_filter # echo -e "\n **** $filter_type **** \n" > /dev/tty - set -l filters_arg (commandline -op)[-1] + set -l filters_arg (commandline -xp)[-1] if string match -rq -- '^-' $filters_arg # No filter name started __fish_ffmpeg_filters $filter_type diff --git a/share/completions/for.fish b/share/completions/for.fish index e7d74a390..aa258b856 100644 --- a/share/completions/for.fish +++ b/share/completions/for.fish @@ -1,3 +1,3 @@ -complete -c for -n 'test (count (commandline -opc)) -eq 1' -s h -l help -d 'Display help and exit' -complete -c for -n 'test (count (commandline -opc)) -eq 1' -f -complete -c for -n 'test (count (commandline -opc)) -eq 2' -xa in +complete -c for -n 'test (count (commandline -xpc)) -eq 1' -s h -l help -d 'Display help and exit' +complete -c for -n 'test (count (commandline -xpc)) -eq 1' -f +complete -c for -n 'test (count (commandline -xpc)) -eq 2' -xa in diff --git a/share/completions/fossil.fish b/share/completions/fossil.fish index 8965229e3..fa5a399c5 100644 --- a/share/completions/fossil.fish +++ b/share/completions/fossil.fish @@ -6,37 +6,37 @@ function __fish_fossil end function __fish_fossil_needs_command - test (count (commandline -poc)) -eq 1 + test (count (commandline -pxc)) -eq 1 end function __fish_fossil_command - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) test (count $cmd) -gt 1 and contains -- $cmd[2] $argv end function __fish_fossil_subcommand - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) test (count $cmd) -eq 2 and test $argv[1] = $cmd[2] end function __fish_fossil_subsubcommand - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) test (count $cmd) -ge 3 and test $argv[1] = $cmd[2] and test $argv[2] = $cmd[3] end function __fish_fossil_subsubcommand_only - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) test (count $cmd) -eq 3 and test $argv[1] = $cmd[2] and test $argv[2] = $cmd[3] end function __fish_fossil_subsubsubcommand_only - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) test (count $cmd) -eq 4 and test $argv[1] = $cmd[2] and test $argv[2] = $cmd[3] diff --git a/share/completions/gem.fish b/share/completions/gem.fish index 119e4f13a..179d81feb 100644 --- a/share/completions/gem.fish +++ b/share/completions/gem.fish @@ -43,7 +43,7 @@ complete $common_opt -l debug -d "Turn on Ruby debugging" ## # cert -set -l cert_opt -c gem -n 'contains cert (commandline -poc)' +set -l cert_opt -c gem -n 'contains cert (commandline -pxc)' complete $cert_opt -s a -l add -d "Add a trusted certificate" -x complete $cert_opt -s l -l list -d "List trusted certificates" complete $cert_opt -s r -l remove -d "Remove trusted certificates containing STRING" -x @@ -54,7 +54,7 @@ complete $cert_opt -s s -l sign -d "Sign a certificate with my key and certifica ## # check -set -l check_opt -c gem -n 'contains check (commandline -poc)' +set -l check_opt -c gem -n 'contains check (commandline -pxc)' complete $check_opt -s v -l verify -d "Verify gem file against its internal checksum" -x complete $check_opt -s a -l alien -d "Report 'unmanaged' or rogue files in the gem repository" complete $check_opt -s t -l test -d "Run unit tests for gem" @@ -62,12 +62,12 @@ complete $check_opt -s V -l version -d "Specify version for which to run unit te ## # cleanup -set -l cleanup_opt -c gem -n 'contains cleanup (commandline -poc)' +set -l cleanup_opt -c gem -n 'contains cleanup (commandline -pxc)' complete $cleanup_opt -s d -l dryrun -d "Don't really cleanup" ## # contents -set -l contents_opt -c gem -n 'contains contents (commandline -poc)' +set -l contents_opt -c gem -n 'contains contents (commandline -pxc)' complete $contents_opt -s l -l list -d "List the files inside a Gem" complete $contents_opt -s V -l version -d "Specify version for gem to view" complete $contents_opt -s s -l spec-dir -d "Search for gems under specific paths" -x @@ -75,7 +75,7 @@ complete $contents_opt -s v -l verbose -d "Be verbose when showing status" ## # dependency -set -l dep_opt -c gem -n 'contains dependency (commandline -poc)' +set -l dep_opt -c gem -n 'contains dependency (commandline -pxc)' complete $dep_opt -s v -l version -d "Specify version of gem to uninstall" -x complete $dep_opt -s r -l reverse-dependencies -d "Include reverse dependencies in the output" complete $dep_opt -l no-reverse-dependencies -d "Don't include reverse dependencies in the output" @@ -83,17 +83,17 @@ complete $dep_opt -s p -l pipe -d "Pipe Format (name --version ver)" ## # environment -set -l env_opt -c gem -n 'contains environment (commandline -poc)' +set -l env_opt -c gem -n 'contains environment (commandline -pxc)' complete $env_opt -xa "packageversion\t'display the package version' gemdir\t'display the path where gems are installed' gempath\t'display path used to search for gems' version\t'display the gem format version' remotesources\t'display the remote gem servers'" ## # help -set -l help_opt -c gem -n 'contains help (commandline -poc)' +set -l help_opt -c gem -n 'contains help (commandline -pxc)' complete $help_opt -xa "commands\t'list all gem commands' examples\t'show some examples of usage' build cert check cleanup contents dependency environment help install list query rdoc search specification uninstall unpack update" ## # install -set -l install_opt -c gem -n 'contains install (commandline -poc)' +set -l install_opt -c gem -n 'contains install (commandline -pxc)' complete $install_opt -s v -l version -d "Specify version of gem to install" -x complete $install_opt -s l -l local -d "Restrict operations to the LOCAL domain (default)" complete $install_opt -s r -l remote -d "Restrict operations to the REMOTE domain" @@ -113,7 +113,7 @@ complete $install_opt -s y -l include-dependencies -d "Unconditionally install t ## # list -set -l list_opt -c gem -n 'contains list (commandline -poc)' +set -l list_opt -c gem -n 'contains list (commandline -pxc)' complete $list_opt -s d -l details -d "Display detailed information of gem(s)" complete $list_opt -l no-details -d "Don't display detailed information of gem(s)" complete $list_opt -s l -l local -d "Restrict operations to the LOCAL domain (default)" @@ -122,7 +122,7 @@ complete $list_opt -s b -l both -d "Allow LOCAL and REMOTE operations" ## # query -set -l query_opt -c gem -n 'contains query (commandline -poc)' +set -l query_opt -c gem -n 'contains query (commandline -pxc)' complete $query_opt -s n -l name-matches -d "Name of gem(s) to query on matches the provided REGEXP" -x complete $query_opt -s d -l details -d "Display detailed information of gem(s)" complete $query_opt -l no-details -d "Don't display detailed information of gem(s)" @@ -132,7 +132,7 @@ complete $query_opt -s b -l both -d "Allow LOCAL and REMOTE operations" ## # rdoc -set -l rdoc_opt -c gem -n 'contains rdoc (commandline -poc)' +set -l rdoc_opt -c gem -n 'contains rdoc (commandline -pxc)' complete $rdoc_opt -l all -d "Generate RDoc/RI documentation for all installed gems" complete $rdoc_opt -l rdoc -d "Include RDoc generated documents" complete $rdoc_opt -l no-rdoc -d "Don't include RDoc generated documents" @@ -142,7 +142,7 @@ complete $rdoc_opt -s v -l version -d "Specify version of gem to rdoc" -x ## # search -set -l search_opt -c gem -n 'contains search (commandline -poc)' +set -l search_opt -c gem -n 'contains search (commandline -pxc)' complete $search_opt -s d -l details -d "Display detailed information of gem(s)" complete $search_opt -l no-details -d "Don't display detailed information of gem(s)" complete $search_opt -s l -l local -d "Restrict operations to the LOCAL domain (default)" @@ -151,7 +151,7 @@ complete $search_opt -s b -l both -d "Allow LOCAL and REMOTE operations" ## # specification -set -l specification_opt -c gem -n 'contains specification (commandline -poc)' +set -l specification_opt -c gem -n 'contains specification (commandline -pxc)' complete $specification_opt -s v -l version -d "Specify version of gem to examine" -x complete $specification_opt -s l -l local -d "Restrict operations to the LOCAL domain (default)" complete $specification_opt -s r -l remote -d "Restrict operations to the REMOTE domain" @@ -160,7 +160,7 @@ complete $specification_opt -l all -d "Output specifications for all versions of ## # uninstall -set -l uninstall_opt -c gem -n 'contains uninstall (commandline -poc)' +set -l uninstall_opt -c gem -n 'contains uninstall (commandline -pxc)' complete $uninstall_opt -s a -l all -d "Uninstall all matching versions" complete $uninstall_opt -l no-all -d "Don't uninstall all matching versions" complete $uninstall_opt -s i -l ignore-dependencies -d "Ignore dependency requirements while uninstalling" @@ -171,12 +171,12 @@ complete $uninstall_opt -s v -l version -d "Specify version of gem to uninstall" ## # unpack -set -l unpack_opt -c gem -n 'contains unpack (commandline -poc)' +set -l unpack_opt -c gem -n 'contains unpack (commandline -pxc)' complete $unpack_opt -s v -l version -d "Specify version of gem to unpack" -x ## # update -set -l update_opt -c gem -n 'contains update (commandline -poc)' +set -l update_opt -c gem -n 'contains update (commandline -pxc)' complete $update_opt -s i -l install-dir -d "Gem repository directory to get installed gems" complete $update_opt -s N -l no-document -d "Disable documentation generation on update" complete $update_opt -l document -a '(__fish_append , rdoc ri)' -d "Specify the documentation types you wish to generate" diff --git a/share/completions/git.fish b/share/completions/git.fish index b781a7c26..29426b6ef 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -5,7 +5,7 @@ function __fish_git set -l saved_args $argv set -l global_args - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) # We assume that git is the first command until we have a better awareness of subcommands, see #2705. set -e cmd[1] if argparse -s (__fish_git_global_optspecs) -- $cmd 2>/dev/null @@ -525,7 +525,7 @@ end # Provides __fish_git_rev_files completions for the current token function __fish_git_complete_rev_files - set -l split (string split -m 1 ":" -- (commandline -ot)) + set -l split (string split -m 1 ":" -- (commandline -xt)) set -l rev $split[1] set -l path $split[2] @@ -540,11 +540,11 @@ function __fish_git_needs_rev_files # This definitely works with `git show` to retrieve a copy of a file as it exists # in the index of revision $rev, it should be updated to include others as they # are identified. - __fish_git_using_command show; and string match -r "^[^-].*:" -- (commandline -ot) + __fish_git_using_command show; and string match -r "^[^-].*:" -- (commandline -xt) end function __fish_git_ranges - set -l both (commandline -ot | string replace -r '\.{2,3}' \n\$0\n) + set -l both (commandline -xt | string replace -r '\.{2,3}' \n\$0\n) set -l from $both[1] set -l dots $both[2] # If we didn't need to split (or there's nothing _to_ split), complete only the first part @@ -591,7 +591,7 @@ function __fish_git_needs_command end set -g __fish_git_cmdline $cmdline - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -e cmd[1] argparse -s (__fish_git_global_optspecs) -- $cmd 2>/dev/null or return 0 @@ -730,7 +730,7 @@ function __fish_git_contains_opt return 1 end function __fish_git_stash_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) __fish_git_using_command stash or return 2 # The word after the stash command _must_ be the subcommand @@ -744,7 +744,7 @@ function __fish_git_stash_using_command end function __fish_git_stash_not_using_subcommand - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) __fish_git_using_command stash or return 2 set cmd $cmd[(contains -i -- "stash" $cmd)..-1] @@ -792,7 +792,7 @@ end function __fish_git_branch_for_remote set -l remotes (__fish_git_remotes) set -l remote - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) for r in $remotes if contains -- $r $cmd set remote $r @@ -1075,12 +1075,12 @@ complete -f -c git -n "__fish_git_using_command remote" -n "__fish_seen_subcomma ### show complete -f -c git -n __fish_git_needs_command -a show -d 'Show the last commit of a branch' -complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_branches)' -complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_tags)' -d Tag -complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_commits)' -complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_complete_stashes)' -complete -f -c git -n __fish_git_needs_rev_files -n 'not contains -- -- (commandline -opc)' -xa '(__fish_git_complete_rev_files)' -complete -F -c git -n '__fish_git_using_command show' -n 'contains -- -- (commandline -opc)' +complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_branches)' +complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_tags)' -d Tag +complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_commits)' +complete -f -c git -n '__fish_git_using_command show' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_complete_stashes)' +complete -f -c git -n __fish_git_needs_rev_files -n 'not contains -- -- (commandline -xpc)' -xa '(__fish_git_complete_rev_files)' +complete -F -c git -n '__fish_git_using_command show' -n 'contains -- -- (commandline -xpc)' complete -f -c git -n '__fish_git_using_command show' -l format -d 'Pretty-print the contents of the commit logs in a given format' -a '(__fish_git_show_opt format)' complete -f -c git -n '__fish_git_using_command show' -l abbrev-commit -d 'Show only a partial hexadecimal commit object name' complete -f -c git -n '__fish_git_using_command show' -l no-abbrev-commit -d 'Show the full 40-byte hexadecimal commit object name' @@ -1164,15 +1164,15 @@ complete -f -c git -n '__fish_git_using_command am' -l quit -d 'Abort without re complete -c git -n '__fish_git_using_command am' -l show-current-patch -a 'diff raw' -d 'Show message at which patch failures occured' ### checkout -complete -F -c git -n '__fish_git_using_command checkout' -n 'contains -- -- (commandline -opc)' +complete -F -c git -n '__fish_git_using_command checkout' -n 'contains -- -- (commandline -xpc)' complete -f -c git -n __fish_git_needs_command -a checkout -d 'Checkout and switch to a branch' # The following dynamic, order-preserved (-k) completions will be shown in reverse order (see #9221) -complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_recent_commits --all)' -complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_tags)' -d Tag -complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_heads)' -d Head -complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_unique_remote_branches)' -d 'Unique Remote Branch' -complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_branches)' +complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_recent_commits --all)' +complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_tags)' -d Tag +complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_heads)' -d Head +complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_unique_remote_branches)' -d 'Unique Remote Branch' +complete -f -c git -n '__fish_git_using_command checkout' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_branches)' # In the presence of changed files, `git checkout ...` assumes highest likelihood is intent to restore so this comes last (aka shown first). complete -f -c git -n '__fish_git_using_command checkout' -ka '(__fish_git_files modified deleted modified-staged-deleted)' @@ -1247,7 +1247,7 @@ complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcomma complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from start' -l term-old -l term-good -x -d 'Use another term instead of old/good' complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from start' -l no-checkout -d 'Do not checkout tree, only update BISECT_HEAD' complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from start' -l first-parent -d 'On merge commits, follow only the first parent commit' -complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from start' -n 'not contains -- -- (commandline -opc)' -a '(__fish_git_refs)' +complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from start' -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_refs)' complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from bad new good old' -a '(__fish_git_refs)' complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from terms' -l --term-good -d 'Print the term for the old state' complete -f -c git -n '__fish_git_using_command bisect' -n '__fish_seen_subcommand_from terms' -l --term-bad -d 'Print the term for the new state' @@ -1409,8 +1409,8 @@ complete -f -c git -n '__fish_git_using_command describe' -l first-parent -d 'Fo ### diff complete -c git -n __fish_git_needs_command -a diff -d 'Show changes between commits and working tree' -complete -c git -n '__fish_git_using_command diff' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_ranges)' -complete -c git -n '__fish_git_using_command diff' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_complete_stashes)' +complete -c git -n '__fish_git_using_command diff' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_ranges)' +complete -c git -n '__fish_git_using_command diff' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_complete_stashes)' complete -c git -n '__fish_git_using_command diff' -l cached -d 'Show diff of changes in the index' complete -c git -n '__fish_git_using_command diff' -l staged -d 'Show diff of changes in the index' complete -c git -n '__fish_git_using_command diff' -l no-index -d 'Compare two paths on the filesystem' @@ -1422,7 +1422,7 @@ complete -c git -n '__fish_git_using_command diff' -s 3 -l theirs -d 'Compare th complete -c git -n '__fish_git_using_command diff' -s 0 -d 'Omit diff output for unmerged entries and just show "Unmerged"' complete -c git -n '__fish_git_using_command diff' -n 'not __fish_git_contains_opt cached staged' -a '( set -l kinds modified - contains -- -- (commandline -opc) && set -a kinds deleted modified-staged-deleted + contains -- -- (commandline -xpc) && set -a kinds deleted modified-staged-deleted __fish_git_files $kinds )' complete -c git -n '__fish_git_using_command diff' -n '__fish_git_contains_opt cached staged' -fa '(__fish_git_files all-staged)' @@ -1439,11 +1439,11 @@ end ### difftool complete -c git -n __fish_git_needs_command -a difftool -d 'Open diffs in a visual tool' -complete -c git -n '__fish_git_using_command difftool' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_ranges)' +complete -c git -n '__fish_git_using_command difftool' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_ranges)' complete -c git -n '__fish_git_using_command difftool' -l cached -d 'Visually show diff of changes in the index' complete -f -c git -n '__fish_git_using_command difftool' -a '( set -l kinds modified - contains -- -- (commandline -opc) && set -a kinds deleted modified-staged-deleted + contains -- -- (commandline -xpc) && set -a kinds deleted modified-staged-deleted __fish_git_files $kinds )' complete -f -c git -n '__fish_git_using_command difftool' -s g -l gui -d 'Use `diff.guitool` instead of `diff.tool`' @@ -1508,7 +1508,7 @@ complete -f -c git -n '__fish_git_using_command grep' -l or -d 'Combine patterns complete -f -c git -n '__fish_git_using_command grep' -l not -d 'Combine patterns using not' complete -f -c git -n '__fish_git_using_command grep' -l all-match -d 'Only match files that can match all the pattern expressions when giving multiple' complete -f -c git -n '__fish_git_using_command grep' -s q -l quiet -d 'Just exit with status 0 when there is a match and with non-zero status when there isn\'t' -complete -c git -n '__fish_git_using_command grep' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_refs)' +complete -c git -n '__fish_git_using_command grep' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_refs)' # TODO options, including max-depth, h, open-files-in-pager, contexts, threads, file ### init @@ -1521,7 +1521,7 @@ complete -f -c git -n '__fish_git_using_command init' -l bare -d 'Create a bare complete -c git -n __fish_git_needs_command -a shortlog -d 'Show commit shortlog' complete -c git -n __fish_git_needs_command -a log -d 'Show commit logs' complete -c git -n '__fish_git_using_command log' -a '(__fish_git ls-files)' -complete -c git -n '__fish_git_using_command log' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_ranges)' +complete -c git -n '__fish_git_using_command log' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_ranges)' complete -c git -n '__fish_git_using_command log' -l follow -d 'Continue listing file history beyond renames' complete -c git -n '__fish_git_using_command log' -l no-decorate -d 'Don\'t print ref names' complete -f -c git -n '__fish_git_using_command log' -l decorate -a 'short\tHide\ prefixes full\tShow\ full\ ref\ names auto\tHide\ prefixes\ if\ printed\ to\ terminal no\tDon\\\'t\ display\ ref' -d 'Print out ref names' @@ -1970,13 +1970,13 @@ complete -c git -n __fish_git_needs_command -a reset -d 'Reset current HEAD to t complete -f -c git -n '__fish_git_using_command reset' -l hard -d 'Reset the index and the working tree' complete -f -c git -n '__fish_git_using_command reset' -l soft -d 'Reset head without touching the index or the working tree' complete -f -c git -n '__fish_git_using_command reset' -l mixed -d 'The default: reset the index but not the working tree' -complete -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_branches)' +complete -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_branches)' # reset can either undo changes to versioned modified files, # or remove files from the staging area. # Deleted files seem to need a "--" separator. -complete -f -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -opc)' -a '(__fish_git_files all-staged modified)' -complete -f -c git -n '__fish_git_using_command reset' -n 'contains -- -- (commandline -opc)' -a '(__fish_git_files all-staged deleted modified)' -complete -f -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -opc)' -a '(__fish_git_reflog)' -d Reflog +complete -f -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_files all-staged modified)' +complete -f -c git -n '__fish_git_using_command reset' -n 'contains -- -- (commandline -xpc)' -a '(__fish_git_files all-staged deleted modified)' +complete -f -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_reflog)' -d Reflog # TODO options ### restore and switch @@ -2075,7 +2075,7 @@ complete -f -c git -n '__fish_git_using_command stripspace' -s c -l comment-line ### tag complete -f -c git -n __fish_git_needs_command -a tag -d 'Create, list, delete or verify a tag object signed with GPG' -complete -f -c git -n '__fish_git_using_command tag' -n '__fish_not_contain_opt -s d' -n '__fish_not_contain_opt -s v' -n 'test (count (commandline -opc | string match -r -v \'^-\')) -eq 3' -ka '(__fish_git_branches)' +complete -f -c git -n '__fish_git_using_command tag' -n '__fish_not_contain_opt -s d' -n '__fish_not_contain_opt -s v' -n 'test (count (commandline -xpc | string match -r -v \'^-\')) -eq 3' -ka '(__fish_git_branches)' complete -f -c git -n '__fish_git_using_command tag' -s a -l annotate -d 'Make an unsigned, annotated tag object' complete -f -c git -n '__fish_git_using_command tag' -s s -l sign -d 'Make a GPG-signed tag' complete -f -c git -n '__fish_git_using_command tag' -s d -l delete -d 'Remove a tag' @@ -2252,11 +2252,11 @@ complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subco complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from add' -l force -d "Also add ignored submodule path" complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from deinit' -l force -d "Remove even with local changes" complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from deinit' -l all -d "Remove all submodules" -complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from deinit' -n 'not contains -- -- (commandline -opc)' -a '(__fish_git_submodules)' -d Submodule +complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from deinit' -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_submodules)' -d Submodule complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from set-branch' -s b -l branch -d "Specify the branch to use" complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from set-branch' -s d -l default -d "Use default branch of the submodule" complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from status summary' -l cached -d "Use the commit stored in the index" -complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from status' -n 'not contains -- -- (commandline -opc)' -a '(__fish_git_submodules)' -d Submodule +complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from status' -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_submodules)' -d Submodule complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from summary' -l files -d "Compare the commit in the index with submodule HEAD" complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from foreach update status' -l recursive -d "Traverse submodules recursively" complete -f -c git -n '__fish_git_using_command submodule' -n '__fish_seen_subcommand_from foreach' -a "(__fish_complete_subcommand --fcs-skip=3)" @@ -2459,7 +2459,7 @@ complete -f -c git -n "__fish_seen_subcommand_from $sortcommands" -l sort -d 'So complete -c git -n __fish_git_needs_command -a '(__fish_git_custom_commands)' -d 'Custom command' function __fish_git_complete_custom_command -a subcommand - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -e cmd[1] # Drop "git". set -lx subcommand_args if argparse -s (__fish_git_global_optspecs) -- $cmd diff --git a/share/completions/gitk.fish b/share/completions/gitk.fish index 818c88402..55b4b4a19 100644 --- a/share/completions/gitk.fish +++ b/share/completions/gitk.fish @@ -2,25 +2,25 @@ source $__fish_data_dir/completions/git.fish -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l all -d 'Show all refs (branches, tags, etc.)' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l since=YYYY-MM-DD -x -d 'Show commits more recent that a specific date' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l until=YYYY-MM-DD -x -d 'Show commits older than a specific date' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l date-order -d 'Sort commits by date when possible' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l merge -d 'On a merge conflict, show commits that modify conflicting files' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l left-right -d 'Mark which side of a symmetric difference a commit is reachable from' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l full-history -d 'When filtering history with -- path..., do not prune some history' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l simplify-merges -d 'Hide needless merges from history' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l ancestry-path -d 'Only display commits that exist directly on the ancestry chain between the range' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l argscmd= -d 'Command to be run to determine th revision range to show' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l select-commit= -d 'Select the specified commit after loading the graph, instead of HEAD' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -l select-commit=HEAD -d 'Select the specified commit after loading the graph, instead of HEAD' -complete -c gitk -n 'not contains -- -- (commandline -opc) && string match -rq -- "^--select-commit=" (commandline -ct)' -xa '(printf -- "--select-commit=%s\n" (__fish_git_refs))' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -s n -l max-count -x -d 'Limit the number of commits to output' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -xa -L1 -d '-L,: trace the evolution of a line range' -complete -c gitk -n 'not contains -- -- (commandline -opc)' -xa -L. -d '-L: trace the evolution of a function name regex' -complete -c gitk -n 'not contains -- -- (commandline -opc) && string match -rq -- "^-L[^:]*": (commandline -ct)' -xa '( +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l all -d 'Show all refs (branches, tags, etc.)' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l since=YYYY-MM-DD -x -d 'Show commits more recent that a specific date' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l until=YYYY-MM-DD -x -d 'Show commits older than a specific date' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l date-order -d 'Sort commits by date when possible' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l merge -d 'On a merge conflict, show commits that modify conflicting files' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l left-right -d 'Mark which side of a symmetric difference a commit is reachable from' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l full-history -d 'When filtering history with -- path..., do not prune some history' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l simplify-merges -d 'Hide needless merges from history' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l ancestry-path -d 'Only display commits that exist directly on the ancestry chain between the range' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l argscmd= -d 'Command to be run to determine th revision range to show' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l select-commit= -d 'Select the specified commit after loading the graph, instead of HEAD' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -l select-commit=HEAD -d 'Select the specified commit after loading the graph, instead of HEAD' +complete -c gitk -n 'not contains -- -- (commandline -xpc) && string match -rq -- "^--select-commit=" (commandline -ct)' -xa '(printf -- "--select-commit=%s\n" (__fish_git_refs))' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -s n -l max-count -x -d 'Limit the number of commits to output' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -xa -L1 -d '-L,: trace the evolution of a line range' +complete -c gitk -n 'not contains -- -- (commandline -xpc)' -xa -L. -d '-L: trace the evolution of a function name regex' +complete -c gitk -n 'not contains -- -- (commandline -xpc) && string match -rq -- "^-L[^:]*": (commandline -ct)' -xa '( set -l tok (string split -m 1 -- : (commandline -ct)) printf -- "$tok[1]:%s\n" (complete -C"__fish_command_without_completions $tok[2]") )' -complete -c gitk -f -n 'not contains -- -- (commandline -opc)' -a '(__fish_git_ranges)' -complete -c gitk -F -n 'contains -- -- (commandline -opc)' +complete -c gitk -f -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_ranges)' +complete -c gitk -F -n 'contains -- -- (commandline -xpc)' diff --git a/share/completions/gsettings.fish b/share/completions/gsettings.fish index 86dfb07e3..d2bc5b44f 100644 --- a/share/completions/gsettings.fish +++ b/share/completions/gsettings.fish @@ -5,7 +5,7 @@ function __fish_complete_gsettings_args set -l key_commands get monitor writable range describe set reset set -l schemadir - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] if set -q cmd[2] diff --git a/share/completions/heroku.fish b/share/completions/heroku.fish index 1dcd2ced7..df48dc6e3 100644 --- a/share/completions/heroku.fish +++ b/share/completions/heroku.fish @@ -30,7 +30,7 @@ function __fish_list_heroku_releases end function __fish_heroku_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end @@ -38,7 +38,7 @@ function __fish_heroku_needs_command end function __fish_heroku_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/hg.fish b/share/completions/hg.fish index 673ddf859..eb4e24ac1 100644 --- a/share/completions/hg.fish +++ b/share/completions/hg.fish @@ -342,7 +342,7 @@ function __fish_hg_mq_enabled end function __fish_hg_get_command - set -l cmdline (commandline -poc) + set -l cmdline (commandline -pxc) set -e cmdline[1] set -l lasttoken "" for token in $cmdline diff --git a/share/completions/homectl.fish b/share/completions/homectl.fish index 005aa3064..83c06d0ce 100644 --- a/share/completions/homectl.fish +++ b/share/completions/homectl.fish @@ -6,7 +6,7 @@ function __homectl_users end function __homectl_subcommand_is - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) contains -- $cmd[-1] $argv end diff --git a/share/completions/hugo.fish b/share/completions/hugo.fish index b901d9e4f..778ff9b5f 100644 --- a/share/completions/hugo.fish +++ b/share/completions/hugo.fish @@ -3,7 +3,7 @@ # Functions function __fish_hugo_command - set -l tokens (commandline -opc) + set -l tokens (commandline -xpc) test (count $tokens) -le 1; and return 1 set -l command "" set -l skip 1 diff --git a/share/completions/ibmcloud.fish b/share/completions/ibmcloud.fish index 5168b1987..5adeb6583 100644 --- a/share/completions/ibmcloud.fish +++ b/share/completions/ibmcloud.fish @@ -1 +1 @@ -complete -c ibmcloud -f -a '(__fish_argcomplete_complete (commandline -opc) --generate-bash-completion)' +complete -c ibmcloud -f -a '(__fish_argcomplete_complete (commandline -xpc) --generate-bash-completion)' diff --git a/share/completions/invoke-rc.d.fish b/share/completions/invoke-rc.d.fish index f00121a96..efacc674f 100644 --- a/share/completions/invoke-rc.d.fish +++ b/share/completions/invoke-rc.d.fish @@ -3,7 +3,7 @@ function __fish_print_debian_services --description 'Prints services installed' end function __fish_invoke_rcd_has_service - set -l tokens (commandline -opc) + set -l tokens (commandline -xpc) if test (count $tokens) -eq 2 return 0 else diff --git a/share/completions/ip.fish b/share/completions/ip.fish index 7e7ed9312..4b88bd850 100644 --- a/share/completions/ip.fish +++ b/share/completions/ip.fish @@ -13,7 +13,7 @@ set -l ip_all_commands $ip_commands $ip_addr $ip_link $ip_neigh $ip_route function __fish_ip_commandwords set -l skip 0 - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) # Remove the first word because it's "ip" or an alias for it set -e cmd[1] set -l have_command 0 diff --git a/share/completions/iptables.fish b/share/completions/iptables.fish index 1a72a443d..a8f2b9a18 100644 --- a/share/completions/iptables.fish +++ b/share/completions/iptables.fish @@ -2,7 +2,7 @@ set -l __fish_iptables_tables filter nat mangle raw security function __fish_iptables_current_table set -l next_is_table 1 - for token in (commandline -oc) + for token in (commandline -xc) switch $token case "--table=*" echo (string split -m1 = -- $token)[2] @@ -79,7 +79,7 @@ end function __fish_iptables_has_chain # Remove descriptions set -l chains (__fish_iptables_chains | string split -m1 " " | while read -l a b; echo $a; end) - set -l cmdline (commandline -op) + set -l cmdline (commandline -xp) for c in $chains if contains -- $c $cmdline return 0 diff --git a/share/completions/iw.fish b/share/completions/iw.fish index dd3d9cca4..9dbfa5046 100644 --- a/share/completions/iw.fish +++ b/share/completions/iw.fish @@ -21,7 +21,7 @@ function __fish_iw_ssid end function __fish_complete_iw - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if string match --quiet -- '-*' $cmd[2] set -e cmd[2] # Allow other completions to complete as normal diff --git a/share/completions/iwctl.fish b/share/completions/iwctl.fish index 8bca13b1c..52e277a32 100644 --- a/share/completions/iwctl.fish +++ b/share/completions/iwctl.fish @@ -37,7 +37,7 @@ end function __iwctl_match_subcoms set -l match (string split --no-empty " " -- $argv) - set argv (commandline -poc) + set argv (commandline -pxc) # iwctl allows to specify arguments for username, password, passphrase and dont-ask regardless of any following commands argparse -i 'u/username=' 'p/password=' 'P/passphrase=' v/dont-ask -- $argv set argv $argv[2..] @@ -54,7 +54,7 @@ function __iwctl_match_subcoms end function __iwctl_connect - set argv (commandline -poc) + set argv (commandline -pxc) # remove all options argparse -i 'u/username=' 'p/password=' 'P/passphrase=' v/dont-ask -- $argv # station name should now be the third argument (`iwctl station `) diff --git a/share/completions/j.fish b/share/completions/j.fish index 53ec3c62b..7b2bf1913 100644 --- a/share/completions/j.fish +++ b/share/completions/j.fish @@ -3,7 +3,7 @@ function __history_completions --argument-names limit set limit 25 end - set -l tokens (commandline --current-process --tokenize) + set -l tokens (commandline --current-process --expand-tokens) history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* "" | head -n$limit end diff --git a/share/completions/jhipster.fish b/share/completions/jhipster.fish index 5fe45edf5..a7b458f4c 100644 --- a/share/completions/jhipster.fish +++ b/share/completions/jhipster.fish @@ -2,7 +2,7 @@ # Check if command already given function __fish_prog_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) echo $cmd if test (count $cmd) -eq 1 return 0 diff --git a/share/completions/k3d.fish b/share/completions/k3d.fish index f4da4cb00..f9b3990ba 100644 --- a/share/completions/k3d.fish +++ b/share/completions/k3d.fish @@ -1,5 +1,5 @@ function __fish_k3d_no_subcommand --description 'Test if k3d has yet to be given subcommands' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i cluster image kubeconfig node version return 1 end diff --git a/share/completions/keybase.fish b/share/completions/keybase.fish index ac40fcc71..8e455b189 100644 --- a/share/completions/keybase.fish +++ b/share/completions/keybase.fish @@ -1,7 +1,7 @@ #Keybase 5.6.1 function __fish_keybase_line_ends_with - set -l line (commandline -poc | string match -v -r '^-') + set -l line (commandline -pxc | string match -v -r '^-') for i in (seq -1 -1 -(count $argv)) if test "$line[$i]" != "$argv[$i]" return 1 diff --git a/share/completions/kitchen.fish b/share/completions/kitchen.fish index 8e4d5e1d9..ce6a9833c 100644 --- a/share/completions/kitchen.fish +++ b/share/completions/kitchen.fish @@ -1,12 +1,12 @@ # Fish Shell command-line completions for Test Kitchen function __fish_kitchen_no_command -d 'Test if kitchen has yet to be given the main command' - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) test (count $cmd) -eq 1 end function __fish_kitchen_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -q cmd[2]; and test "$argv[1]" = $cmd[2] end diff --git a/share/completions/krita.fish b/share/completions/krita.fish index ec348544a..41bfbe6bf 100644 --- a/share/completions/krita.fish +++ b/share/completions/krita.fish @@ -1,5 +1,5 @@ function __krita_complete_image_format - set -l previous_token (commandline -oc)[-1] + set -l previous_token (commandline -xc)[-1] set -l current_token (commandline -t) if test "$previous_token" = --new-image diff --git a/share/completions/lein.fish b/share/completions/lein.fish index c4e928d82..86337062c 100644 --- a/share/completions/lein.fish +++ b/share/completions/lein.fish @@ -1,5 +1,5 @@ function __fish_lein_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end diff --git a/share/completions/localectl.fish b/share/completions/localectl.fish index 77489f1f6..aeace96ee 100644 --- a/share/completions/localectl.fish +++ b/share/completions/localectl.fish @@ -9,7 +9,7 @@ set -l localevars LANG LC_MESSAGES LC_{CTYPE,NUMERIC,TIME,COLLATE,MONETARY,MESSA set -l locales $localevars=(localectl list-locales 2>/dev/null) function __fish_localectl_layout - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] set -e cmd[1] for l in (localectl list-x11-keymap-layouts) diff --git a/share/completions/lunchy.fish b/share/completions/lunchy.fish index 6b6bff14f..63343fc6c 100644 --- a/share/completions/lunchy.fish +++ b/share/completions/lunchy.fish @@ -1,5 +1,5 @@ function __fish_lunchy_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 @@ -9,7 +9,7 @@ function __fish_lunchy_needs_command end function __fish_lunchy_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -l cmd_count (count $cmd) if test $cmd_count -lt 2 diff --git a/share/completions/lxc.fish b/share/completions/lxc.fish index b7f11cf30..0acdbcd28 100644 --- a/share/completions/lxc.fish +++ b/share/completions/lxc.fish @@ -1,5 +1,5 @@ function __fish_lxc_no_subcommand -d 'Test if lxc has yet to be given the command' - for i in (commandline --tokenize --cut-at-cursor --current-process) + for i in (commandline --expand-tokens --cut-at-cursor --current-process) if contains -- $i config console copy delete exec file help image info launch list move network pause profile publish remote rename restart restore shell snapshot start stop return 1 end diff --git a/share/completions/machinectl.fish b/share/completions/machinectl.fish index 5d5aea148..b0bf8d76a 100644 --- a/share/completions/machinectl.fish +++ b/share/completions/machinectl.fish @@ -8,7 +8,7 @@ function __fish_systemd_has_machine_image set -l images (__fish_systemd_machine_images) for i in $images ".host" # Include ".host" here because it _is_ a valid machine - if contains -- $i (commandline -opc) + if contains -- $i (commandline -xpc) echo $i return 0 end @@ -19,7 +19,7 @@ end function __fish_systemd_has_machine set -l cmd if not count $argv >/dev/null - set cmd (commandline -opc) + set cmd (commandline -xpc) else set cmd $argv end @@ -120,7 +120,7 @@ complete -f -c machinectl -n "__fish_seen_subcommand_from login bind copy-to cop complete -f -c machinectl -n "__fish_seen_subcommand_from login bind copy-to copy-from shell; and not __fish_systemd_has_machine" -a "(__fish_systemd_machines)" # This is imperfect as we print the _local_ users -complete -f -c machinectl -n "__fish_seen_subcommand_from shell; and not __fish_systemd_has_machine (commandline -opc | cut -d"@" -f2-)" -a "(__fish_print_users)@(__fish_systemd_machines)" +complete -f -c machinectl -n "__fish_seen_subcommand_from shell; and not __fish_systemd_has_machine (commandline -xpc | cut -d"@" -f2-)" -a "(__fish_print_users)@(__fish_systemd_machines)" complete -f -c machinectl -n "__fish_seen_subcommand_from read-only; and not __fish_systemd_has_machine_image" -a "(__fish_systemd_machine_images)" complete -f -c machinectl -n "__fish_seen_subcommand_from read-only; and __fish_systemd_has_machine_image" -a "yes no" diff --git a/share/completions/magento.fish b/share/completions/magento.fish index b26baa4a2..c1c97c1d9 100644 --- a/share/completions/magento.fish +++ b/share/completions/magento.fish @@ -202,7 +202,7 @@ end ######################################################### function __fish_magento_not_in_command -d "Checks that prompt is not inside of magento command" - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) for i in $cmd if contains -- $i (__fish_print_magento_commands_list) return 1 @@ -219,7 +219,7 @@ end # in the arguments, even though if more than a single command is specified, # p4 will complain. function __fish_magento_is_using_command -d "Checks if prompt is in a specific command" - if contains -- $argv[1] (commandline -opc) + if contains -- $argv[1] (commandline -xpc) return 0 end return 1 diff --git a/share/completions/meson.fish b/share/completions/meson.fish index 74d8c7e48..b3cb3d88a 100644 --- a/share/completions/meson.fish +++ b/share/completions/meson.fish @@ -1,7 +1,7 @@ # Completions for the meson build system (http://mesonbuild.com/) function __fish_meson_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -e cmd[1] argparse -s v/version -- $cmd 2>/dev/null or return 0 @@ -9,7 +9,7 @@ function __fish_meson_needs_command end function __fish_meson_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -e cmd[1] test (count $cmd) -eq 0 and return 1 @@ -19,7 +19,7 @@ end function __fish_meson_builddir # Consider the value of -C option to detect the build directory - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) argparse -i 'C=' -- $cmd if set -q _flag_C echo $_flag_C diff --git a/share/completions/minikube.fish b/share/completions/minikube.fish index 67861e028..2357e7700 100644 --- a/share/completions/minikube.fish +++ b/share/completions/minikube.fish @@ -5,7 +5,7 @@ # See: https://github.com/kubernetes/minikube function __minikube_no_command - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) if not set -q cmd[2] return 0 end @@ -13,7 +13,7 @@ function __minikube_no_command end function __minikube_using_command - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) if test (count $cmd) -gt (count $argv) set -e cmd[1] @@ -25,7 +25,7 @@ function __minikube_using_command end function __minikube_using_option - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -l query "("(string join -- "|" (string escape --style=regex $argv))")" if test (count $cmd) -gt 1 @@ -37,7 +37,7 @@ function __minikube_using_option end function __minikube_using_option_value -a option -a value - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) if test (count $cmd) -gt 1 string match -qr -- (string escape --style=regex $option)"[= ]"(string escape --style=regex $value) "$cmd" diff --git a/share/completions/mix.fish b/share/completions/mix.fish index 16728f879..fa98e850c 100644 --- a/share/completions/mix.fish +++ b/share/completions/mix.fish @@ -1,7 +1,7 @@ # Completions for the Elixir build tool mix function __fish_mix_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end @@ -9,7 +9,7 @@ function __fish_mix_needs_command end function __fish_mix_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/mkdocs.fish b/share/completions/mkdocs.fish index d16d17373..8d4bdb114 100644 --- a/share/completions/mkdocs.fish +++ b/share/completions/mkdocs.fish @@ -7,32 +7,32 @@ complete -n 'not __fish_seen_subcommand_from build gh-deploy new serve' -f -c mk ## build complete -n 'not __fish_seen_subcommand_from build gh-deploy new serve' -f -c mkdocs -a build -d 'Build the MkDocs documentation' -complete -n 'contains build (commandline -poc)' -f -c mkdocs -s c -l clean -d 'Remove old site_dir before building (the default)' -complete -n 'contains build (commandline -poc)' -c mkdocs -s f -l config-file -r -d 'Provide a specific MkDocs config' -complete -n 'contains build (commandline -poc)' -f -c mkdocs -s s -l strict -d 'Enable strict mode. This will cause MkDocs to abort the build on any warnings' -complete -n 'contains build (commandline -poc)' -c mkdocs -s t -l theme -d 'The theme to use when building your documentation' -xa 'mkdocs readthedocs material' -complete -n 'contains build (commandline -poc)' -c mkdocs -s e -l theme-dir -r -d 'The theme directory to use when building your documentation' -complete -n 'contains build (commandline -poc)' -c mkdocs -s d -l site-dir -r -d 'The directory to output the result of the documentation build' +complete -n 'contains build (commandline -pxc)' -f -c mkdocs -s c -l clean -d 'Remove old site_dir before building (the default)' +complete -n 'contains build (commandline -pxc)' -c mkdocs -s f -l config-file -r -d 'Provide a specific MkDocs config' +complete -n 'contains build (commandline -pxc)' -f -c mkdocs -s s -l strict -d 'Enable strict mode. This will cause MkDocs to abort the build on any warnings' +complete -n 'contains build (commandline -pxc)' -c mkdocs -s t -l theme -d 'The theme to use when building your documentation' -xa 'mkdocs readthedocs material' +complete -n 'contains build (commandline -pxc)' -c mkdocs -s e -l theme-dir -r -d 'The theme directory to use when building your documentation' +complete -n 'contains build (commandline -pxc)' -c mkdocs -s d -l site-dir -r -d 'The directory to output the result of the documentation build' ## gh-deploy complete -n 'not __fish_seen_subcommand_from build gh-deploy new serve' -f -c mkdocs -a gh-deploy -d 'Deploy your documentation to GitHub Pages' -complete -n 'contains gh-deploy (commandline -poc)' -f -c mkdocs -s c -l clean -d 'Remove old site_dir before building (the default)' -complete -n 'contains gh-deploy (commandline -poc)' -c mkdocs -s f -l config-file -r -d 'Provide a specific MkDocs config' -complete -n 'contains gh-deploy (commandline -poc)' -f -c mkdocs -s m -l message -r -d 'A commit message to use when committing to the GitHub Pages remote branch' -complete -n 'contains gh-deploy (commandline -poc)' -f -c mkdocs -s b -l remote-branch -r -d 'The remote branch to commit to for GitHub Pages' -complete -n 'contains gh-deploy (commandline -poc)' -f -c mkdocs -s r -l remote-name -r -d 'The remote name to commit to for GitHub Pages' -complete -n 'contains gh-deploy (commandline -poc)' -f -c mkdocs -l force -d 'Force the push to the repository' +complete -n 'contains gh-deploy (commandline -pxc)' -f -c mkdocs -s c -l clean -d 'Remove old site_dir before building (the default)' +complete -n 'contains gh-deploy (commandline -pxc)' -c mkdocs -s f -l config-file -r -d 'Provide a specific MkDocs config' +complete -n 'contains gh-deploy (commandline -pxc)' -f -c mkdocs -s m -l message -r -d 'A commit message to use when committing to the GitHub Pages remote branch' +complete -n 'contains gh-deploy (commandline -pxc)' -f -c mkdocs -s b -l remote-branch -r -d 'The remote branch to commit to for GitHub Pages' +complete -n 'contains gh-deploy (commandline -pxc)' -f -c mkdocs -s r -l remote-name -r -d 'The remote name to commit to for GitHub Pages' +complete -n 'contains gh-deploy (commandline -pxc)' -f -c mkdocs -l force -d 'Force the push to the repository' ## new complete -n 'not __fish_seen_subcommand_from build gh-deploy new serve' -f -c mkdocs -a new -r -d 'Create a new MkDocs project' ## serve complete -n 'not __fish_seen_subcommand_from build gh-deploy new serve' -f -c mkdocs -a serve -d 'Run the builtin development server' -complete -n 'contains serve (commandline -poc)' -c mkdocs -s f -l config-file -r -d 'Provide a specific MkDocs config' -complete -n 'contains serve (commandline -poc)' -c mkdocs -s a -l dev-addr -r -d 'IP address and port to serve documentation locally (default: localhost:8000)' -complete -n 'contains serve (commandline -poc)' -f -c mkdocs -s s -l strict -d 'Enable strict mode. This will cause MkDocs to abort the build on any warnings' -complete -n 'contains serve (commandline -poc)' -c mkdocs -s t -l theme -d 'The theme to use when building your documentation' -xa 'mkdocs readthedocs material' -complete -n 'contains serve (commandline -poc)' -c mkdocs -s e -l theme-dir -r -d 'The theme directory to use when building your documentation' -complete -n 'contains serve (commandline -poc)' -f -c mkdocs -l livereload -d 'Enable the live reloading in the development server (this is the default)' -complete -n 'contains serve (commandline -poc)' -f -c mkdocs -l no-livereload -d 'Disable the live reloading in the development server' -complete -n 'contains serve (commandline -poc)' -f -c mkdocs -l dirtyreload -d 'Enable the live reloading in the development server, but only re-build files that have changed' +complete -n 'contains serve (commandline -pxc)' -c mkdocs -s f -l config-file -r -d 'Provide a specific MkDocs config' +complete -n 'contains serve (commandline -pxc)' -c mkdocs -s a -l dev-addr -r -d 'IP address and port to serve documentation locally (default: localhost:8000)' +complete -n 'contains serve (commandline -pxc)' -f -c mkdocs -s s -l strict -d 'Enable strict mode. This will cause MkDocs to abort the build on any warnings' +complete -n 'contains serve (commandline -pxc)' -c mkdocs -s t -l theme -d 'The theme to use when building your documentation' -xa 'mkdocs readthedocs material' +complete -n 'contains serve (commandline -pxc)' -c mkdocs -s e -l theme-dir -r -d 'The theme directory to use when building your documentation' +complete -n 'contains serve (commandline -pxc)' -f -c mkdocs -l livereload -d 'Enable the live reloading in the development server (this is the default)' +complete -n 'contains serve (commandline -pxc)' -f -c mkdocs -l no-livereload -d 'Disable the live reloading in the development server' +complete -n 'contains serve (commandline -pxc)' -f -c mkdocs -l dirtyreload -d 'Enable the live reloading in the development server, but only re-build files that have changed' diff --git a/share/completions/mkvextract.fish b/share/completions/mkvextract.fish index 8ba17acdc..35a2402ab 100644 --- a/share/completions/mkvextract.fish +++ b/share/completions/mkvextract.fish @@ -8,7 +8,7 @@ # Chapters: 7 entries function __fish_mkvextract_get_mode - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -l skip_next 0 for c in $cmd[2..-1] test $skip_next = 1; and set skip_next 0; and continue @@ -29,7 +29,7 @@ function __fish_mkvextract_get_mode end function __fish_mkvextract_get_file - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) # Any invocation with a file specified will already have >= 2 args if not set -q cmd[3] return 1 diff --git a/share/completions/mvn.fish b/share/completions/mvn.fish index 499337211..b9405d283 100644 --- a/share/completions/mvn.fish +++ b/share/completions/mvn.fish @@ -37,7 +37,7 @@ complete -c mvn -f -o cpu -l check-plugin-updates -d "Ineffective, only kept for function __fish_mvn_complete_definition set -l current_token (commandline -t) - set -l previous_token (commandline -opc)[-1] + set -l previous_token (commandline -xpc)[-1] string match -qr -- '^(-D|--define\b)' $current_token $previous_token or return set -l keyval (string split --max=1 -- = $current_token) diff --git a/share/completions/ninja.fish b/share/completions/ninja.fish index dab77f750..9e9d2b084 100644 --- a/share/completions/ninja.fish +++ b/share/completions/ninja.fish @@ -1,7 +1,7 @@ function __fish_ninja set -l saved_args $argv set -l dir . - if argparse -i C/dir= -- (commandline -opc) + if argparse -i C/dir= -- (commandline -xpc) command ninja -C$_flag_C $saved_args end end diff --git a/share/completions/nmcli.fish b/share/completions/nmcli.fish index 729f20467..947313b17 100644 --- a/share/completions/nmcli.fish +++ b/share/completions/nmcli.fish @@ -34,64 +34,64 @@ complete -c nmcli -n "__fish_seen_subcommand_from general; and not __fish_seen_s complete -c nmcli -n "__fish_seen_subcommand_from general; and not __fish_seen_subcommand_from $nmcli_general" -xa permissions -d 'Show caller permissions for authenticated operations' complete -c nmcli -n "__fish_seen_subcommand_from general; and not __fish_seen_subcommand_from $nmcli_general" -xa logging -d 'Get or change NetworkManager logging level and domains' complete -c nmcli -n "__fish_seen_subcommand_from general; and not __fish_seen_subcommand_from $nmcli_general" -xa help -complete -c nmcli -n "contains_seq general logging -- (commandline -op)" -xa 'level domains help' +complete -c nmcli -n "contains_seq general logging -- (commandline -xp)" -xa 'level domains help' complete -c nmcli -n "__fish_seen_subcommand_from networking; and not __fish_seen_subcommand_from $nmcli_networking" -xa on -d 'Switch networking on' complete -c nmcli -n "__fish_seen_subcommand_from networking; and not __fish_seen_subcommand_from $nmcli_networking" -xa off -d 'Switch networking off' complete -c nmcli -n "__fish_seen_subcommand_from networking; and not __fish_seen_subcommand_from $nmcli_networking" -xa connectivity -d 'Get network connectivity state' complete -c nmcli -n "__fish_seen_subcommand_from networking; and not __fish_seen_subcommand_from $nmcli_networking" -xa help -complete -c nmcli -n "contains_seq networking connectivity -- (commandline -op)" -xa check -d 'Re-check the connectivity' +complete -c nmcli -n "contains_seq networking connectivity -- (commandline -xp)" -xa check -d 'Re-check the connectivity' complete -c nmcli -n "__fish_seen_subcommand_from radio; and not __fish_seen_subcommand_from $nmcli_radio" -xa all -d 'Get status of all radio switches; turn them on/off' -complete -c nmcli -n "contains_seq radio all -- (commandline -op)" -xa 'on off help' +complete -c nmcli -n "contains_seq radio all -- (commandline -xp)" -xa 'on off help' complete -c nmcli -n "__fish_seen_subcommand_from radio; and not __fish_seen_subcommand_from $nmcli_radio" -xa wifi -d 'Get status of Wi-Fi radio switch; turn it on/off' -complete -c nmcli -n "contains_seq radio wifi -- (commandline -op)" -xa 'on off help' +complete -c nmcli -n "contains_seq radio wifi -- (commandline -xp)" -xa 'on off help' complete -c nmcli -n "__fish_seen_subcommand_from radio; and not __fish_seen_subcommand_from $nmcli_radio" -xa wwan -d 'Get status of mobile broadband radio switch; turn it on/off' -complete -c nmcli -n "contains_seq radio wwan -- (commandline -op)" -xa 'on off help' +complete -c nmcli -n "contains_seq radio wwan -- (commandline -xp)" -xa 'on off help' complete -c nmcli -n "__fish_seen_subcommand_from connection; and not __fish_seen_subcommand_from $nmcli_connection" -xa "$nmcli_connection" # Connection subcommands are self-explanatory, I'm just highlighting a difference between edit and modify complete -c nmcli -n "__fish_seen_subcommand_from connection; and not __fish_seen_subcommand_from $nmcli_connection" -xa modify -d "Modify one or more properties" complete -c nmcli -n "__fish_seen_subcommand_from connection; and not __fish_seen_subcommand_from $nmcli_connection" -xa edit -d "Interactive edit" -complete -c nmcli -n "contains_seq connection show -- (commandline -op)" -l active -d 'List only active profiles' -complete -c nmcli -n "contains_seq connection show -- (commandline -op)" -l order -d 'Custom connection ordering' -complete -c nmcli -n "contains_seq connection show -- (commandline -op)" -xa "help $cname" -k -complete -c nmcli -n "contains_seq connection up -- (commandline -op) && not contains -- (commandline -op)[-1] ifname ap" -xa "help $cname" -k -complete -c nmcli -n "contains_seq connection up -- (commandline -op) && test (commandline -op)[-1] = ifname" -xa "$ifname" -k -complete -c nmcli -n "contains_seq connection up -- (commandline -op) && test (commandline -op)[-1] = ap" -xa "$bssid" -complete -c nmcli -n "contains_seq connection up -- (commandline -op)" -xa nsp -d 'Specify NSP to connect to (only for WiMAX)' -complete -c nmcli -n "contains_seq connection up -- (commandline -op)" -xa passwd-file -d 'password file to activate the connection' -complete -c nmcli -n "contains_seq connection down -- (commandline -op)" -xa "help $cname" -k -complete -c nmcli -n "contains_seq connection add -- (commandline -op)" -xa 'type ifname con-name autoconnect save master slave-type help' -complete -c nmcli -n "contains_seq connection add -- (commandline -op) && test (commandline -op)[-1] = ifname" -xa "$ifname" -complete -c nmcli -n "contains_seq connection modify -- (commandline -op)" -l temporary -complete -c nmcli -n "contains_seq connection modify -- (commandline -op)" -xa "help $cname" -k -complete -c nmcli -n "contains_seq connection clone -- (commandline -op)" -l temporary -complete -c nmcli -n "contains_seq connection clone -- (commandline -op)" -xa "help $cname" -k -complete -c nmcli -n "contains_seq connection edit -- (commandline -op)" -xa "type help $cname" -k -complete -c nmcli -n "contains_seq connection edit type -- (commandline -op)" -xa con-name -complete -c nmcli -n "contains_seq connection delete -- (commandline -op)" -xa "help $cname" -k -complete -c nmcli -n "contains_seq connection monitor -- (commandline -op)" -xa "help $cname" -k -complete -c nmcli -n "contains_seq connection import -- (commandline -op)" -l temporary -complete -c nmcli -n "contains_seq connection import -- (commandline -op)" -xa 'type file help' -complete -c nmcli -n "contains_seq connection export -- (commandline -op)" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection show -- (commandline -xp)" -l active -d 'List only active profiles' +complete -c nmcli -n "contains_seq connection show -- (commandline -xp)" -l order -d 'Custom connection ordering' +complete -c nmcli -n "contains_seq connection show -- (commandline -xp)" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection up -- (commandline -xp) && not contains -- (commandline -xp)[-1] ifname ap" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection up -- (commandline -xp) && test (commandline -xp)[-1] = ifname" -xa "$ifname" -k +complete -c nmcli -n "contains_seq connection up -- (commandline -xp) && test (commandline -xp)[-1] = ap" -xa "$bssid" +complete -c nmcli -n "contains_seq connection up -- (commandline -xp)" -xa nsp -d 'Specify NSP to connect to (only for WiMAX)' +complete -c nmcli -n "contains_seq connection up -- (commandline -xp)" -xa passwd-file -d 'password file to activate the connection' +complete -c nmcli -n "contains_seq connection down -- (commandline -xp)" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection add -- (commandline -xp)" -xa 'type ifname con-name autoconnect save master slave-type help' +complete -c nmcli -n "contains_seq connection add -- (commandline -xp) && test (commandline -xp)[-1] = ifname" -xa "$ifname" +complete -c nmcli -n "contains_seq connection modify -- (commandline -xp)" -l temporary +complete -c nmcli -n "contains_seq connection modify -- (commandline -xp)" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection clone -- (commandline -xp)" -l temporary +complete -c nmcli -n "contains_seq connection clone -- (commandline -xp)" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection edit -- (commandline -xp)" -xa "type help $cname" -k +complete -c nmcli -n "contains_seq connection edit type -- (commandline -xp)" -xa con-name +complete -c nmcli -n "contains_seq connection delete -- (commandline -xp)" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection monitor -- (commandline -xp)" -xa "help $cname" -k +complete -c nmcli -n "contains_seq connection import -- (commandline -xp)" -l temporary +complete -c nmcli -n "contains_seq connection import -- (commandline -xp)" -xa 'type file help' +complete -c nmcli -n "contains_seq connection export -- (commandline -xp)" -xa "help $cname" -k set -l wifi_commands list connect hotspot rescan help complete -c nmcli -n "__fish_seen_subcommand_from device; and not __fish_seen_subcommand_from $nmcli_device" -xa "$nmcli_device" -complete -c nmcli -n "contains_seq device set -- (commandline -op)" -xa 'ifname autoconnect managed' -complete -c nmcli -n "contains_seq device wifi -- (commandline -op); and not __fish_seen_subcommand_from $wifi_commands" -xa "$wifi_commands" -complete -c nmcli -n "contains_seq device wifi list -- (commandline -op)" -xa 'ifname bssid' -complete -c nmcli -n "contains_seq device wifi list ifname -- (commandline -op)" -xa "$ifname" -complete -c nmcli -n "contains_seq device wifi list bssid -- (commandline -op)" -xa "$bssid" -complete -c nmcli -n "contains_seq device wifi connect -- (commandline -op)" -xa "$ssid $bssid password wep-key-type ifname bssid name private hidden" -k -complete -c nmcli -n "contains_seq device wifi connect ifname -- (commandline -op)" -xa "$ifname" -complete -c nmcli -n "contains_seq device wifi connect bssid -- (commandline -op)" -xa "$bssid" -complete -c nmcli -n "contains_seq device wifi hotspot -- (commandline -op)" -xa 'ifname con-name ssid band channel password' -complete -c nmcli -n "contains_seq device wifi hotspot ifname -- (commandline -op)" -xa "$ifname" -complete -c nmcli -n "contains_seq device wifi rescan -- (commandline -op)" -xa 'ifname ssid' -complete -c nmcli -n "contains_seq device wifi rescan ifname -- (commandline -op)" -xa "$ifname" -complete -c nmcli -n "contains_seq device wifi rescan ssid -- (commandline -op)" -xa "$ssid" -complete -c nmcli -n "contains_seq device lldp -- (commandline -op)" -xa list +complete -c nmcli -n "contains_seq device set -- (commandline -xp)" -xa 'ifname autoconnect managed' +complete -c nmcli -n "contains_seq device wifi -- (commandline -xp); and not __fish_seen_subcommand_from $wifi_commands" -xa "$wifi_commands" +complete -c nmcli -n "contains_seq device wifi list -- (commandline -xp)" -xa 'ifname bssid' +complete -c nmcli -n "contains_seq device wifi list ifname -- (commandline -xp)" -xa "$ifname" +complete -c nmcli -n "contains_seq device wifi list bssid -- (commandline -xp)" -xa "$bssid" +complete -c nmcli -n "contains_seq device wifi connect -- (commandline -xp)" -xa "$ssid $bssid password wep-key-type ifname bssid name private hidden" -k +complete -c nmcli -n "contains_seq device wifi connect ifname -- (commandline -xp)" -xa "$ifname" +complete -c nmcli -n "contains_seq device wifi connect bssid -- (commandline -xp)" -xa "$bssid" +complete -c nmcli -n "contains_seq device wifi hotspot -- (commandline -xp)" -xa 'ifname con-name ssid band channel password' +complete -c nmcli -n "contains_seq device wifi hotspot ifname -- (commandline -xp)" -xa "$ifname" +complete -c nmcli -n "contains_seq device wifi rescan -- (commandline -xp)" -xa 'ifname ssid' +complete -c nmcli -n "contains_seq device wifi rescan ifname -- (commandline -xp)" -xa "$ifname" +complete -c nmcli -n "contains_seq device wifi rescan ssid -- (commandline -xp)" -xa "$ssid" +complete -c nmcli -n "contains_seq device lldp -- (commandline -xp)" -xa list complete -c nmcli -n "__fish_seen_subcommand_from agent; and not __fish_seen_subcommand_from $nmcli_agent" -xa secret -d "Register nmcli as NM secret agent" complete -c nmcli -n "__fish_seen_subcommand_from agent; and not __fish_seen_subcommand_from $nmcli_agent" -xa polkit -d "Register nmcli as a polkit agent for user session" diff --git a/share/completions/npm.fish b/share/completions/npm.fish index b1fc510e4..578271fb6 100644 --- a/share/completions/npm.fish +++ b/share/completions/npm.fish @@ -8,7 +8,7 @@ source $__fish_data_dir/functions/__fish_npm_helper.fish set -l npm_install "npm install --global" function __fish_npm_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 @@ -18,7 +18,7 @@ function __fish_npm_needs_command end function __fish_npm_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if contains -- $cmd[2] $argv diff --git a/share/completions/opam.fish b/share/completions/opam.fish index f2db2ec79..0030e29f9 100644 --- a/share/completions/opam.fish +++ b/share/completions/opam.fish @@ -1,5 +1,5 @@ function __fish_opam_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 @@ -9,7 +9,7 @@ function __fish_opam_using_command end function __fish_opam_at_color - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 2 if test $cmd[-1] = --color return 0 @@ -19,7 +19,7 @@ function __fish_opam_at_color end function __fish_opam_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end diff --git a/share/completions/openssl.fish b/share/completions/openssl.fish index f960d6282..aceb7f456 100644 --- a/share/completions/openssl.fish +++ b/share/completions/openssl.fish @@ -2,7 +2,7 @@ if string match -q "OpenSSL*" (command openssl version) # This is real OpenSSL that has the list command. function __fish_openssl_subcommand_options --description "Print options for openssl subcommand" - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) openssl list -options $cmd[2] | string replace -r -- '^(\S*)\s*.*' '-$1' end diff --git a/share/completions/opkg.fish b/share/completions/opkg.fish index 6a62c5153..8d2da8724 100644 --- a/share/completions/opkg.fish +++ b/share/completions/opkg.fish @@ -1,7 +1,7 @@ #completion for opkg function __fish_opkg_no_subcommand -d 'Test if opkg has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i update upgrade install configure remove flag list list-installed list-upgradable list-changed-conffiles files search find info status download compare-versions print-architecture depends whatdepends whatdependsrec whatrecommends whatsuggests whatprovides whatconflicts whatreplaces return 1 end @@ -10,7 +10,7 @@ function __fish_opkg_no_subcommand -d 'Test if opkg has yet to be given the subc end function __fish_opkg_use_package -d 'Test if opkg command should have packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i contains install search find info status download compare-versions print-architecture depends whatdepends whatdependsrec whatrecommends whatsuggests whatprovides whatconflicts whatreplaces return 0 end @@ -19,7 +19,7 @@ function __fish_opkg_use_package -d 'Test if opkg command should have packages a end function __fish_opkg_use_package_installed -d 'Test if opkg command should have installed packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i contains upgrade configure remove flag files return 0 end diff --git a/share/completions/p4.fish b/share/completions/p4.fish index b83804d20..b1ca16d1a 100644 --- a/share/completions/p4.fish +++ b/share/completions/p4.fish @@ -285,7 +285,7 @@ end ######################################################### function __fish_p4_not_in_command -d "Checks that prompt is not inside of p4 command" - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i (__fish_print_p4_commands_list) return 1 end @@ -301,7 +301,7 @@ end # in the arguments, even though if more than a single command is specified, # p4 will complain. function __fish_p4_is_using_command -d "Checks if prompt is in a specific command" - if contains -- $argv[1] (commandline -opc) + if contains -- $argv[1] (commandline -xpc) return 0 end return 1 diff --git a/share/completions/path.fish b/share/completions/path.fish index 1d34bfc39..e9f3e2a37 100644 --- a/share/completions/path.fish +++ b/share/completions/path.fish @@ -1,35 +1,35 @@ # Completion for builtin path # This follows a strict command-then-options approach, so we can just test the number of tokens -complete -f -c path -n "test (count (commandline -opc)) -le 2" -s h -l help -d "Display help and exit" -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a basename -d 'Give basename for given paths' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a dirname -d 'Give dirname for given paths' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a extension -d 'Give extension for given paths' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a change-extension -d 'Change extension for given paths' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a mtime -d 'Show modification time' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a normalize -d 'Normalize given paths (remove ./, resolve ../ against other components..)' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a resolve -d 'Normalize given paths and resolve symlinks' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a filter -d 'Print paths that match a filter' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a is -d 'Return true if any path matched a filter' -complete -f -c path -n "test (count (commandline -opc)) -lt 2" -a sort -d 'Sort paths' -complete -f -c path -n "test (count (commandline -opc)) -ge 2" -s q -l quiet -d "Only return status, no output" -complete -f -c path -n "test (count (commandline -opc)) -ge 2" -s z -l null-in -d "Handle NULL-delimited input" -complete -f -c path -n "test (count (commandline -opc)) -ge 2" -s Z -l null-out -d "Print NULL-delimited output" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s v -l invert -d "Invert meaning of filters" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s t -l type -d "Filter by type" -x -a '(__fish_append , file link dir block char fifo socket)' -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s f -d "Filter files" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s d -d "Filter directories" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s l -d "Filter symlinks" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s p -l perm -d "Filter by permission" -x -a '(__fish_append , read write exec suid sgid user group)' -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s r -d "Filter readable paths" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s w -d "Filter writable paths" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is" -s x -d "Filter executable paths" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] mtime" -s R -l relative -d "Show seconds since the modification time" -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sort" \ +complete -f -c path -n "test (count (commandline -xpc)) -le 2" -s h -l help -d "Display help and exit" +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a basename -d 'Give basename for given paths' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a dirname -d 'Give dirname for given paths' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a extension -d 'Give extension for given paths' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a change-extension -d 'Change extension for given paths' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a mtime -d 'Show modification time' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a normalize -d 'Normalize given paths (remove ./, resolve ../ against other components..)' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a resolve -d 'Normalize given paths and resolve symlinks' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a filter -d 'Print paths that match a filter' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a is -d 'Return true if any path matched a filter' +complete -f -c path -n "test (count (commandline -xpc)) -lt 2" -a sort -d 'Sort paths' +complete -f -c path -n "test (count (commandline -xpc)) -ge 2" -s q -l quiet -d "Only return status, no output" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2" -s z -l null-in -d "Handle NULL-delimited input" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2" -s Z -l null-out -d "Print NULL-delimited output" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s v -l invert -d "Invert meaning of filters" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s t -l type -d "Filter by type" -x -a '(__fish_append , file link dir block char fifo socket)' +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s f -d "Filter files" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s d -d "Filter directories" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s l -d "Filter symlinks" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s p -l perm -d "Filter by permission" -x -a '(__fish_append , read write exec suid sgid user group)' +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s r -d "Filter readable paths" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s w -d "Filter writable paths" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] filter is" -s x -d "Filter executable paths" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] mtime" -s R -l relative -d "Show seconds since the modification time" +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] sort" \ -l key -x -a 'basename\t"Sort only by basename" dirname\t"Sort only by dirname" path\t"Sort by full path"' -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sort" -s u -l unique -d 'Only leave the first of each run with the same key' -complete -f -c path -n "test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] sort" -s r -l reverse -d 'Reverse the order' +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] sort" -s u -l unique -d 'Only leave the first of each run with the same key' +complete -f -c path -n "test (count (commandline -xpc)) -ge 2; and contains -- (commandline -xpc)[2] sort" -s r -l reverse -d 'Reverse the order' # Turn on file completions again. # match takes a glob as first arg, expand takes only globs. # We still want files completed then! -complete -F -c path -n "test (count (commandline -opc)) -ge 2" +complete -F -c path -n "test (count (commandline -xpc)) -ge 2" diff --git a/share/completions/phpunit.fish b/share/completions/phpunit.fish index b3085f5ff..ca0b7cc41 100644 --- a/share/completions/phpunit.fish +++ b/share/completions/phpunit.fish @@ -11,7 +11,7 @@ end # Lists PHPUnit objects corresponding to the given option function __fish_phpunit_list --argument-names option # Use the same PHPUnit binary as in the command being completed - set -l phpunit (commandline -opc)[1] + set -l phpunit (commandline -xpc)[1] test -x $phpunit or return diff --git a/share/completions/pkg.fish b/share/completions/pkg.fish index 90802480e..db1f8eb3a 100644 --- a/share/completions/pkg.fish +++ b/share/completions/pkg.fish @@ -14,7 +14,7 @@ end function __fish_pkg_is for option in $argv - if contains $option (commandline -poc) + if contains $option (commandline -pxc) return 0 end end @@ -23,7 +23,7 @@ end function __fish_pkg_subcommand set -l skip_next 1 - for token in (commandline -opc) + for token in (commandline -xpc) if test $skip_next = 1 set skip_next 0 continue diff --git a/share/completions/prt-get.fish b/share/completions/prt-get.fish index 4d2020fac..801a94553 100644 --- a/share/completions/prt-get.fish +++ b/share/completions/prt-get.fish @@ -13,7 +13,7 @@ function __fish_prt_ports -d 'Obtain a list of ports' end function __fish_prt_no_subcommand -d 'Test if prt-get has yet to be given the command' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i install depinst grpinst update remove sysup lock unlock listlocked diff quickdiff search dsearch fsearch info path readme depends quickdep dependent deptree dup list printf listinst listorphans isinst current ls cat edit help dumpconfig version cache return 1 end @@ -24,7 +24,7 @@ end # a function to verify if prt-get should have packages as potential completion function __fish_prt_use_package -d 'Test if prt-get should have packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i update remove lock unlock current return 0 end @@ -34,7 +34,7 @@ end # a function to test if prt-get should have ports as potential completions function __fish_prt_use_port -d 'Test if prt-get should have ports as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i install depinst grpinst diff depends quickdep dependent deptree isinst info path readme ls cat edit return 0 end diff --git a/share/completions/pyenv.fish b/share/completions/pyenv.fish index 762943d10..49d538a5e 100644 --- a/share/completions/pyenv.fish +++ b/share/completions/pyenv.fish @@ -1,7 +1,7 @@ # fish completion for pyenv function __fish_pyenv_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end @@ -9,7 +9,7 @@ function __fish_pyenv_needs_command end function __fish_pyenv_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/qdbus.fish b/share/completions/qdbus.fish index b22f7ae69..dde65ac7b 100644 --- a/share/completions/qdbus.fish +++ b/share/completions/qdbus.fish @@ -1,5 +1,5 @@ function __fish_qdbus_complete - argparse system 'bus=' literal help -- (commandline --cut-at-cursor --tokenize) 2>/dev/null + argparse system 'bus=' literal help -- (commandline --cut-at-cursor --expand-tokens) 2>/dev/null or return if set -q _flag_help return diff --git a/share/completions/rbenv.fish b/share/completions/rbenv.fish index 14292586f..e2c4f600c 100644 --- a/share/completions/rbenv.fish +++ b/share/completions/rbenv.fish @@ -1,7 +1,7 @@ # fish completion for rbenv function __fish_rbenv_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end @@ -10,7 +10,7 @@ function __fish_rbenv_needs_command end function __fish_rbenv_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/reg.fish b/share/completions/reg.fish index 2204ef0a4..0eb39217e 100644 --- a/share/completions/reg.fish +++ b/share/completions/reg.fish @@ -137,7 +137,7 @@ function __reg_save_complete_args -a previous_token end function __reg_complete_args -d 'Function to generate args' - set -l previous_token (commandline -oc)[-1] + set -l previous_token (commandline -xc)[-1] if __fish_seen_subcommand_from add __reg_add_complete_args $previous_token diff --git a/share/completions/ruby-build.fish b/share/completions/ruby-build.fish index 9055e4359..74f4d9477 100644 --- a/share/completions/ruby-build.fish +++ b/share/completions/ruby-build.fish @@ -1,5 +1,5 @@ function __fish_ruby-build_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end diff --git a/share/completions/sbt.fish b/share/completions/sbt.fish index fd2e8e090..4e124adf8 100644 --- a/share/completions/sbt.fish +++ b/share/completions/sbt.fish @@ -29,12 +29,12 @@ complete -c sbt -f -a '(string split "\n" " tasks List the tasks defined for the current project test Execute all tests " | string trim | string replace -r "\s+" "\t")' \ - -n 'not contains -- "new" (commandline -cpo); - and not contains -- "client" (commandline -cpo)' + -n 'not contains -- "new" (commandline -cpx); + and not contains -- "client" (commandline -cpx)' # These cannot be combined with any other commands and require an argument -complete -c sbt -f -n 'test (count (commandline -cpo)) = 1 ' -a new -d 'Create a new sbt project from the given template' -complete -c sbt -f -n 'test (count (commandline -cpo)) = 1 ' -a client -d 'Connect to a server with an interactive sbt prompt' +complete -c sbt -f -n 'test (count (commandline -cpx)) = 1 ' -a new -d 'Create a new sbt project from the given template' +complete -c sbt -f -n 'test (count (commandline -cpx)) = 1 ' -a client -d 'Connect to a server with an interactive sbt prompt' ########### diff --git a/share/completions/schtasks.fish b/share/completions/schtasks.fish index 44553ec66..f6e0147d1 100644 --- a/share/completions/schtasks.fish +++ b/share/completions/schtasks.fish @@ -214,7 +214,7 @@ function __schtasks_run_complete_args -a previous_token end function __schtasks_complete_args -d 'Function to generate args' - set --local previous_token (commandline -oc)[-1] + set --local previous_token (commandline -xc)[-1] if __fish_seen_argument -w change __schtasks_change_complete_args "$previous_token" diff --git a/share/completions/service.fish b/share/completions/service.fish index e668f66c9..4a0f94fb6 100644 --- a/share/completions/service.fish +++ b/share/completions/service.fish @@ -17,7 +17,7 @@ function __fish_complete_freebsd_service_actions # Use the output of `service -v foo` to retrieve the list of service-specific verbs # Output takes the form "[prefix1 prefix2 ..](cmd1 cmd2 cmd3)" where any combination # of zero or one prefixe(s) and any one command is a valid verb. - set -l service_name (commandline --tokenize --cut-at-cursor)[-1] + set -l service_name (commandline --expand-tokens --cut-at-cursor)[-1] set -l results (service $service_name -v 2>| string match -r '\\[(.*)\\]\\((.*)\\)') set -l prefixes "" (string split '|' -- $results[2]) set -l commands (string split '|' -- $results[3]) diff --git a/share/completions/set.fish b/share/completions/set.fish index f7b24800f..cccf262ca 100644 --- a/share/completions/set.fish +++ b/share/completions/set.fish @@ -7,7 +7,7 @@ # function __fish_set_is_color -a foreground background -d 'Test if We are specifying a color value for the prompt' - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] for i in $cmd switch $i @@ -28,7 +28,7 @@ function __fish_set_is_color -a foreground background -d 'Test if We are specify end function __fish_set_is_locale -d 'Test if We are specifying a locale value for the prompt' - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] for i in $cmd switch $i diff --git a/share/completions/setx.fish b/share/completions/setx.fish index 8dd3e4996..5b42777b2 100644 --- a/share/completions/setx.fish +++ b/share/completions/setx.fish @@ -1,5 +1,5 @@ function __setx_complete_args -d 'Function to generate args' - set -l previous_token (commandline -oc)[-1] + set -l previous_token (commandline -xc)[-1] if test "$previous_token" = /u __fish_print_windows_users diff --git a/share/completions/sfdx.fish b/share/completions/sfdx.fish index addd5438b..58c585adf 100644 --- a/share/completions/sfdx.fish +++ b/share/completions/sfdx.fish @@ -1,7 +1,7 @@ # Tab completion for sfdx (https://developer.salesforce.com/tools/sfdxcli). function __fish_sfdx_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/shortcuts.fish b/share/completions/shortcuts.fish index 44ab8a143..de8a00846 100644 --- a/share/completions/shortcuts.fish +++ b/share/completions/shortcuts.fish @@ -12,7 +12,7 @@ end # output is like: # function __fish_shortcuts_using_command -# set cmd (commandline -opc) +# set cmd (commandline -xpc) # if test (count $cmd) -eq (count $argv) # for i in (seq (count $argv)) # if test $cmd[$i] != $argv[$i] @@ -36,8 +36,8 @@ end # complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts run --output-path' -f -a '(for i in *.{}; echo $i;end)' # complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts run' -f -r -l output-type -d 'What type to output data in, in Universal Type Identifier format.' # complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts list' -f -r -s f -l folder-name -d 'The folder to list.' -# complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts list -f' -f -a '(command shortcuts ---completion list -- --custom (commandline -opc)[1..-1])' -# complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts list --folder-name' -f -a '(command shortcuts ---completion list -- --custom (commandline -opc)[1..-1])' +# complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts list -f' -f -a '(command shortcuts ---completion list -- --custom (commandline -xpc)[1..-1])' +# complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts list --folder-name' -f -a '(command shortcuts ---completion list -- --custom (commandline -xpc)[1..-1])' # complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts list' -f -l folders -d 'List folders instead of shortcuts.' # complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts sign' -f -r -s m -l mode -d 'The signing mode.' # complete -c shortcuts -n '__fish_shortcuts_using_command shortcuts sign' -f -r -s i -l input -d 'The shortcut file to sign.' diff --git a/share/completions/snap.fish b/share/completions/snap.fish index 9937c74cb..dafa45bfc 100644 --- a/share/completions/snap.fish +++ b/share/completions/snap.fish @@ -1,7 +1,7 @@ # Completions for `snap` command function __fish_snap_no_subcommand -d 'Test if snap has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i abort ack alias aliases buy changes connect disable disconnect download \ enable find get help info install interfaces known list login logout prefer refresh remove \ revert run set tasks try unalias version watch @@ -12,7 +12,7 @@ function __fish_snap_no_subcommand -d 'Test if snap has yet to be given the subc end function __fish_snap_using_subcommand -d 'Test if given subcommand is used' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i $argv[1] return 0 end @@ -21,7 +21,7 @@ function __fish_snap_using_subcommand -d 'Test if given subcommand is used' end function __fish_snap_use_file -d 'Test if snap command should have files as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i ack try return 0 end @@ -71,7 +71,7 @@ function __fish_snap_aliases -d 'List aliases' end function __fish_snap_no_assertion -d 'Check that no assertion type is used yet' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i account account-key model serial snap-declaration snap-build snap-revision \ system-user validation return 1 diff --git a/share/completions/sops.fish b/share/completions/sops.fish index eaf4f12f4..ed31bbb2b 100644 --- a/share/completions/sops.fish +++ b/share/completions/sops.fish @@ -5,7 +5,7 @@ function __fish_sops_no_subcommand --description "Test if there is a subcommand end function __fish_sops_print_remaining_args --description "Print remaining argument given" - set -l cmd (commandline -poc) (commandline -ct) + set -l cmd (commandline -pxc) (commandline -ct) set -e cmd[1] set -l opts d/decrypt e/encrypt r/rotate i/in-place s/show-master-keys v/version set -a opts extract ignore-mac verbose enable-local-keyservice diff --git a/share/completions/spago.fish b/share/completions/spago.fish index 459244601..ed30041e6 100644 --- a/share/completions/spago.fish +++ b/share/completions/spago.fish @@ -4,7 +4,7 @@ spago --fish-completion-script (command -v spago) | source function __fish_spago_is_arg_n --argument-names n - test $n -eq (count (string match -v -- '-*' (commandline -poc))) + test $n -eq (count (string match -v -- '-*' (commandline -pxc))) end function __fish_spago_pkgnames diff --git a/share/completions/string.fish b/share/completions/string.fish index 74796a835..d338f6c32 100644 --- a/share/completions/string.fish +++ b/share/completions/string.fish @@ -1,63 +1,63 @@ # Completion for builtin string # This follows a strict command-then-options approach, so we can just test the number of tokens complete -f -c string -complete -f -c string -n "test (count (commandline -opc)) -le 2" -s h -l help -d "Display help and exit" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "not contains -- (commandline -opc)[2] escape collect pad" -s q -l quiet -d "Do not print output" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a lower -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a upper -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a length -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] length" -s V -l visible -d "Use the visible width, excluding escape sequences" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a sub -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] sub" -s s -l start -xa "(seq 1 10)" -d "Sepcify start index" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] sub" -s e -l end -xa "(seq 1 10)" -d "Sepcify end index" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] sub" -s l -l length -xa "(seq 1 10)" -d "Sepcify substring length" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a split -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a split0 -complete -x -c string -n 'test (count (commandline -opc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -opc)[2]' -s m -l max -a "(seq 1 10)" -d "Specify maximum number of splits" -complete -x -c string -n 'test (count (commandline -opc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -opc)[2]' -s f -l fields -a "(seq 1 10)" -d "Specify fields" -complete -f -c string -n 'test (count (commandline -opc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -opc)[2]' -s r -l right -d "Split right-to-left" -complete -f -c string -n 'test (count (commandline -opc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -opc)[2]' -s n -l no-empty -d "Empty results excluded" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a collect -complete -f -c string -n 'test (count (commandline -opc)) -ge 2' -n 'string match -qr collect\$ -- (commandline -opc)[2]' -s N -l no-trim-newlines -d "Don't trim trailing newlines" -complete -f -c string -n 'test (count (commandline -opc)) -ge 2' -n 'string match -qr collect\$ -- (commandline -opc)[2]' -s a -l allow-empty -d "Always print empty argument" +complete -f -c string -n "test (count (commandline -xpc)) -le 2" -s h -l help -d "Display help and exit" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "not contains -- (commandline -xpc)[2] escape collect pad" -s q -l quiet -d "Do not print output" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a lower +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a upper +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a length +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] length" -s V -l visible -d "Use the visible width, excluding escape sequences" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a sub +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] sub" -s s -l start -xa "(seq 1 10)" -d "Sepcify start index" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] sub" -s e -l end -xa "(seq 1 10)" -d "Sepcify end index" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] sub" -s l -l length -xa "(seq 1 10)" -d "Sepcify substring length" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a split +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a split0 +complete -x -c string -n 'test (count (commandline -xpc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -xpc)[2]' -s m -l max -a "(seq 1 10)" -d "Specify maximum number of splits" +complete -x -c string -n 'test (count (commandline -xpc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -xpc)[2]' -s f -l fields -a "(seq 1 10)" -d "Specify fields" +complete -f -c string -n 'test (count (commandline -xpc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -xpc)[2]' -s r -l right -d "Split right-to-left" +complete -f -c string -n 'test (count (commandline -xpc)) -ge 2' -n 'string match -qr split0\?\$ -- (commandline -xpc)[2]' -s n -l no-empty -d "Empty results excluded" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a collect +complete -f -c string -n 'test (count (commandline -xpc)) -ge 2' -n 'string match -qr collect\$ -- (commandline -xpc)[2]' -s N -l no-trim-newlines -d "Don't trim trailing newlines" +complete -f -c string -n 'test (count (commandline -xpc)) -ge 2' -n 'string match -qr collect\$ -- (commandline -xpc)[2]' -s a -l allow-empty -d "Always print empty argument" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a join -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a join0 -complete -f -c string -n 'test (count (commandline -opc)) -ge 2' -n 'contains -- (commandline -opc)[2] join' -s n -l no-empty -d "Empty strings excluded" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a trim -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] trim" -s l -l left -d "Trim only leading chars" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] trim" -s r -l right -d "Trim only trailing chars" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] trim" -s c -l chars -d "Specify the chars to trim (default: whitespace)" -x -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a escape -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a unescape -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] escape; or contains -- (commandline -opc)[2] unescape" -s n -l no-quoted -d "Escape with \\ instead of quotes" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] escape; or contains -- (commandline -opc)[2] unescape" -l style -d "Specify escaping style" -xa " +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a join +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a join0 +complete -f -c string -n 'test (count (commandline -xpc)) -ge 2' -n 'contains -- (commandline -xpc)[2] join' -s n -l no-empty -d "Empty strings excluded" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a trim +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] trim" -s l -l left -d "Trim only leading chars" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] trim" -s r -l right -d "Trim only trailing chars" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] trim" -s c -l chars -d "Specify the chars to trim (default: whitespace)" -x +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a escape +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a unescape +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] escape; or contains -- (commandline -xpc)[2] unescape" -s n -l no-quoted -d "Escape with \\ instead of quotes" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] escape; or contains -- (commandline -xpc)[2] unescape" -l style -d "Specify escaping style" -xa " (printf '%s\t%s\n' script 'For use in scripts' \ var 'For use as a variable name' \ regex 'For string match -r, string replace -r' \ url 'For use as a URL')" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a match -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] match" -s n -l index -d "Report index, length of match" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] match" -s v -l invert -d "Report only non-matches" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] match" -s e -l entire -d "Show entire matching lines" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] match" -s g -l groups-only -d "Only report capturing groups" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a replace -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] replace" -s f -l filter -d "Report only actual replacements" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a match +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match" -s n -l index -d "Report index, length of match" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match" -s v -l invert -d "Report only non-matches" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match" -s e -l entire -d "Show entire matching lines" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match" -s g -l groups-only -d "Only report capturing groups" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a replace +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] replace" -s f -l filter -d "Report only actual replacements" # All replace options are also valid for match -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] match replace" -s a -l all -d "Report every match" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] match replace" -s i -l ignore-case -d "Case insensitive" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] match replace" -s r -l regex -d "Use regex instead of globs" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match replace" -s a -l all -d "Report every match" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match replace" -s i -l ignore-case -d "Case insensitive" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match replace" -s r -l regex -d "Use regex instead of globs" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a repeat -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] repeat" -s n -l count -xa "(seq 1 10)" -d "Repetition count" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] repeat" -s m -l max -xa "(seq 1 10)" -d "Maximum number of printed chars" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] repeat" -s N -l no-newline -d "Remove newline" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a pad -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] pad" -s r -l right -d "Pad right instead of left" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] pad" -s c -l char -x -d "Character to use for padding" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] pad" -s w -l width -x -d "Integer width of the result, default is maximum width of inputs" -complete -f -c string -n "test (count (commandline -opc)) -lt 2" -a shorten -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] shorten" -s l -l left -d "Remove from the left on" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] shorten" -s c -l char -x -d "Characters to use as ellipsis" -complete -x -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] shorten" -s m -l max -x -d "Integer width of the result, default is minimum non-zero width of inputs" -complete -f -c string -n "test (count (commandline -opc)) -ge 2" -n "contains -- (commandline -opc)[2] shorten" -s N -l no-newline -d "Only keep one line of each input" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a repeat +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] repeat" -s n -l count -xa "(seq 1 10)" -d "Repetition count" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] repeat" -s m -l max -xa "(seq 1 10)" -d "Maximum number of printed chars" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] repeat" -s N -l no-newline -d "Remove newline" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a pad +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] pad" -s r -l right -d "Pad right instead of left" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] pad" -s c -l char -x -d "Character to use for padding" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] pad" -s w -l width -x -d "Integer width of the result, default is maximum width of inputs" +complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a shorten +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] shorten" -s l -l left -d "Remove from the left on" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] shorten" -s c -l char -x -d "Characters to use as ellipsis" +complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] shorten" -s m -l max -x -d "Integer width of the result, default is minimum non-zero width of inputs" +complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] shorten" -s N -l no-newline -d "Only keep one line of each input" diff --git a/share/completions/sudo.fish b/share/completions/sudo.fish index 03d659d14..dabb69ff2 100644 --- a/share/completions/sudo.fish +++ b/share/completions/sudo.fish @@ -3,7 +3,7 @@ # function __fish_sudo_print_remaining_args - set -l tokens (commandline -opc) (commandline -ct) + set -l tokens (commandline -xpc) (commandline -ct) set -e tokens[1] # These are all the options mentioned in the man page for Todd Miller's "sudo.ws" sudo (in that order). # If any other implementation has different options, this should be harmless, since they shouldn't be used anyway. diff --git a/share/completions/svn.fish b/share/completions/svn.fish index fcfb4b411..eec5f7a36 100644 --- a/share/completions/svn.fish +++ b/share/completions/svn.fish @@ -1,5 +1,5 @@ function __fish_complete_svn_diff --description 'Complete "svn diff" arguments' - set -l cmdl (commandline -cop) + set -l cmdl (commandline -cxp) #set -l cmdl svn diff --diff-cmd diff --extensions '-a -b' set -l diff diff set -l args diff --git a/share/completions/tar.fish b/share/completions/tar.fish index aaf10ab9e..d3574b943 100644 --- a/share/completions/tar.fish +++ b/share/completions/tar.fish @@ -1,5 +1,5 @@ function __fish_complete_tar -d "Peek inside of archives and list all files" - set -l args (commandline -poc) + set -l args (commandline -pxc) while count $args >/dev/null switch $args[1] case '-*f' --file diff --git a/share/completions/terraform.fish b/share/completions/terraform.fish index 42980182d..a7a2cad9d 100644 --- a/share/completions/terraform.fish +++ b/share/completions/terraform.fish @@ -1,7 +1,7 @@ # Returns 0 if the command has not had a subcommand yet # Does not currently account for -chdir function __fish_terraform_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 diff --git a/share/completions/tig.fish b/share/completions/tig.fish index fdac08fda..78b070f66 100644 --- a/share/completions/tig.fish +++ b/share/completions/tig.fish @@ -3,7 +3,7 @@ not functions -q __fish_git && source $__fish_data_dir/completions/git.fish set -l subcommands log show reflog blame grep refs statsh status -complete -c tig -n "not contains -- -- (commandline -opc) && not __fish_seen_subcommand_from $subcommands" -xa 'show\t"Open diff view using the given git-show(1) options" +complete -c tig -n "not contains -- -- (commandline -xpc) && not __fish_seen_subcommand_from $subcommands" -xa 'show\t"Open diff view using the given git-show(1) options" blame\t"Annotate the given file, takes git-blame(1) options" status\t"Start up in status view" log\t"Start up in log view view, displaying git-log(1) output" @@ -12,16 +12,16 @@ refs\t"Start up in refs view" stash\t"Start up in stash view" grep\t"Open the grep view. Supports the same options as git-grep(1)" ' -complete -c tig -n 'not contains -- -- (commandline -opc)' -l stdin -d 'Read git commit IDs from stdin' -complete -c tig -n 'not contains -- -- (commandline -opc)' -l pretty=raw -d 'Read git log output from stdin' -complete -c tig -n 'not contains -- -- (commandline -opc)' -s C -r -d 'Run as if Tig was started in this directory' -complete -c tig -n 'not contains -- -- (commandline -opc)' -s v -l version -d 'Show version and exit' -complete -c tig -n 'not contains -- -- (commandline -opc)' -s h -l help -d 'Show help message and exit' +complete -c tig -n 'not contains -- -- (commandline -xpc)' -l stdin -d 'Read git commit IDs from stdin' +complete -c tig -n 'not contains -- -- (commandline -xpc)' -l pretty=raw -d 'Read git log output from stdin' +complete -c tig -n 'not contains -- -- (commandline -xpc)' -s C -r -d 'Run as if Tig was started in this directory' +complete -c tig -n 'not contains -- -- (commandline -xpc)' -s v -l version -d 'Show version and exit' +complete -c tig -n 'not contains -- -- (commandline -xpc)' -s h -l help -d 'Show help message and exit' -complete -c tig -n 'not contains -- -- (commandline -opc) && __fish_seen_subcommand_from show' -xa '(set -l t (commandline -ct); complete -C"git show $t")' -complete -c tig -n 'not contains -- -- (commandline -opc) && __fish_seen_subcommand_from blame' -xa '(set -l t (commandline -ct); complete -C"git blame $t")' -complete -c tig -n 'not contains -- -- (commandline -opc) && __fish_seen_subcommand_from log' -xa '(set -l t (commandline -ct); complete -C"git log $t")' -complete -c tig -n 'not contains -- -- (commandline -opc) && __fish_seen_subcommand_from grep' -xa '(set -l t (commandline -ct); complete -C"git grep $t")' +complete -c tig -n 'not contains -- -- (commandline -xpc) && __fish_seen_subcommand_from show' -xa '(set -l t (commandline -ct); complete -C"git show $t")' +complete -c tig -n 'not contains -- -- (commandline -xpc) && __fish_seen_subcommand_from blame' -xa '(set -l t (commandline -ct); complete -C"git blame $t")' +complete -c tig -n 'not contains -- -- (commandline -xpc) && __fish_seen_subcommand_from log' -xa '(set -l t (commandline -ct); complete -C"git log $t")' +complete -c tig -n 'not contains -- -- (commandline -xpc) && __fish_seen_subcommand_from grep' -xa '(set -l t (commandline -ct); complete -C"git grep $t")' -complete -c tig -f -n 'not contains -- -- (commandline -opc)' -a '(__fish_git_ranges)' -complete -c tig -n 'contains -- -- (commandline -opc)' -F +complete -c tig -f -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_ranges)' +complete -c tig -n 'contains -- -- (commandline -xpc)' -F diff --git a/share/completions/tmuxinator.fish b/share/completions/tmuxinator.fish index 457d78022..24a9bce8f 100644 --- a/share/completions/tmuxinator.fish +++ b/share/completions/tmuxinator.fish @@ -1,5 +1,5 @@ function __fish_tmuxinator_using_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -gt 1 if test $argv[1] = $cmd[2] return 0 diff --git a/share/completions/travis.fish b/share/completions/travis.fish index 1f7fd7167..cc2edba3b 100644 --- a/share/completions/travis.fish +++ b/share/completions/travis.fish @@ -1,5 +1,5 @@ function __fish_travis_needs_command - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 return 0 end diff --git a/share/completions/unrar.fish b/share/completions/unrar.fish index b1a57c16b..26a25776d 100644 --- a/share/completions/unrar.fish +++ b/share/completions/unrar.fish @@ -1,5 +1,5 @@ function __fish_complete_unrar -d "Peek inside of archives and list all files" - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] for i in $cmd switch $i diff --git a/share/completions/usbip.fish b/share/completions/usbip.fish index 750c7aa0a..980f76cee 100644 --- a/share/completions/usbip.fish +++ b/share/completions/usbip.fish @@ -1,5 +1,5 @@ function __fish_usbip_no_subcommand -d 'Test if usbip has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i attach detach list bind unbind port return 1 end @@ -13,7 +13,7 @@ function __fish_usbip_remote -d 'List remote usbip host' end function __fish_usbip_busid -d 'List usbip busid' - set -l remote (commandline -opc | string match -r '(?<=-r)(emote)?=?\s*(\S+)' | string trim) + set -l remote (commandline -xpc | string match -r '(?<=-r)(emote)?=?\s*(\S+)' | string trim) set -l busids (usbip list -r $remote 2> /dev/null | string match -r '\d+-\d+') printf '%s\n' $busids end diff --git a/share/completions/vagrant.fish b/share/completions/vagrant.fish index 311a5d00a..60700af7f 100644 --- a/share/completions/vagrant.fish +++ b/share/completions/vagrant.fish @@ -46,7 +46,7 @@ function __fish_vagrant_boxes end function __fish_vagrant_need_command -V commands - argparse -s h/help v/version -- (commandline -opc)[2..-1] 2>/dev/null + argparse -s h/help v/version -- (commandline -xpc)[2..-1] 2>/dev/null or return if set -q _flag_help[1]; or set -q _flag_help[1] return 1 diff --git a/share/completions/valgrind.fish b/share/completions/valgrind.fish index 8cf9b0c26..6e99305c9 100644 --- a/share/completions/valgrind.fish +++ b/share/completions/valgrind.fish @@ -18,7 +18,7 @@ complete -xc valgrind -l $skin -d Skin -a " " function __fish_valgrind_skin --argument-names tool -V skin - set -l cmd (commandline -cpo) + set -l cmd (commandline -cpx) # Quote $cmd so the tokens are separated with a space if string match -qr -- "--$skin(=| )$tool" "$cmd" return 0 diff --git a/share/completions/vim-addons.fish b/share/completions/vim-addons.fish index 09e628b7c..d615632d5 100644 --- a/share/completions/vim-addons.fish +++ b/share/completions/vim-addons.fish @@ -6,7 +6,7 @@ # function __fish_vim-addons_subcommand -d 'Test if vim-addons has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i list status install remove disable amend files show return 1 end @@ -20,25 +20,25 @@ end complete -c vim-addons -n __fish_vim-addons_subcommand -a list -f -d "list the names of the addons available in the system" # status complete -c vim-addons -n __fish_vim-addons_subcommand -a status -f -d "show the status of the addons available in the system" -complete -c vim-addons -n "contains status (commandline -poc)" -a "(vim-addons list)" -x +complete -c vim-addons -n "contains status (commandline -pxc)" -a "(vim-addons list)" -x # install complete -c vim-addons -n __fish_vim-addons_subcommand -a install -x -d "install one or more addons under ~/.vim" -complete -c vim-addons -n "contains install (commandline -poc)" -a "(vim-addons status | awk '\$2 != \"installed\" && \$1 != \"#\" { print \$1}')" -x +complete -c vim-addons -n "contains install (commandline -pxc)" -a "(vim-addons status | awk '\$2 != \"installed\" && \$1 != \"#\" { print \$1}')" -x # remove complete -c vim-addons -n __fish_vim-addons_subcommand -a remove -x -d "remove one or more addons from ~/.vim" -complete -c vim-addons -n "contains remove (commandline -poc)" -a "(vim-addons status | awk '\$2 != \"removed\" && \$1 != \"#\" { print \$1}')" -x +complete -c vim-addons -n "contains remove (commandline -pxc)" -a "(vim-addons status | awk '\$2 != \"removed\" && \$1 != \"#\" { print \$1}')" -x # disable complete -c vim-addons -n __fish_vim-addons_subcommand -a disable -x -d "disable one or more addons to be used by the current user" -complete -c vim-addons -n "contains disable (commandline -poc)" -a "(vim-addons status | awk '\$2 != \"disable\" && \$1 != \"#\" { print \$1}')" -x +complete -c vim-addons -n "contains disable (commandline -pxc)" -a "(vim-addons status | awk '\$2 != \"disable\" && \$1 != \"#\" { print \$1}')" -x # amend complete -c vim-addons -n __fish_vim-addons_subcommand -a amend -x -d "undo the effects of a previous disable command" -complete -c vim-addons -n "contains amend (commandline -poc)" -a "(vim-addons list)" -x +complete -c vim-addons -n "contains amend (commandline -pxc)" -a "(vim-addons list)" -x # files complete -c vim-addons -n __fish_vim-addons_subcommand -a files -x -d "list, one per line, the files composing the specified addons" -complete -c vim-addons -n "contains files (commandline -poc)" -a "(vim-addons list)" -x +complete -c vim-addons -n "contains files (commandline -pxc)" -a "(vim-addons list)" -x # show complete -c vim-addons -n __fish_vim-addons_subcommand -a show -x -d "displays detailed information about the specified addons" -complete -c vim-addons -n "contains show (commandline -poc)" -a "(vim-addons list)" -x +complete -c vim-addons -n "contains show (commandline -pxc)" -a "(vim-addons list)" -x # Options diff --git a/share/completions/wajig.fish b/share/completions/wajig.fish index c76ec61b0..fa72e42ad 100644 --- a/share/completions/wajig.fish +++ b/share/completions/wajig.fish @@ -1,5 +1,5 @@ function __fish_wajig_no_subcommand -d 'Test if wajig has yet to be given the subcommand' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i addcdrom auto-alts auto-clean auto-download auto-install \ available bug build build-depend changelog clean commands daily-upgrade \ dependents describe describe-new detail detail-new dist-upgrade docs download \ @@ -23,7 +23,7 @@ function __fish_wajig_no_subcommand -d 'Test if wajig has yet to be given the su end function __fish_wajig_use_package -d 'Test if wajig command should have packages as potential completion' - for i in (commandline -opc) + for i in (commandline -xpc) if contains -- $i contains bug build build-depend changelog dependents describe \ detail hold install installr installrs installs list list-files news \ package purge purge-depend readme recursive recommended reconfigure \ diff --git a/share/completions/watchexec.fish b/share/completions/watchexec.fish index 7fe9aeb05..7db88fc30 100644 --- a/share/completions/watchexec.fish +++ b/share/completions/watchexec.fish @@ -1,7 +1,7 @@ function __fish_watchexec_print_remaining_args set -l spec w/watch= c/clear='?' o/on-busy-update= r/restart s/signal= stop-signal= stop-timeout= d/debounce= stdin-quit no-vcs-ignore no-project-ignore no-global-ignore no-default-ignore no-discover-ignore p/postpone delay-run= poll= shell= n no-environment emit-events-to= E/env= no-process-group N/notify project-origin= workdir= e/exts= f/filter= filter-file= i/ignore= ignore-file= fs-events= no-meta print-events v/verbose log-file= manual h/help V/version - set argv (commandline -opc | string escape) (commandline -ct) + set argv (commandline -xpc | string escape) (commandline -ct) set -e argv[1] argparse -s $spec -- $argv 2>/dev/null @@ -24,7 +24,7 @@ end function __fish_watchexec_at_argfile set -l current (commandline -ct) - if test (count (commandline -opc)) -eq 1 + if test (count (commandline -xpc)) -eq 1 and string match -q '@*' -- $current set current (string sub -s 2 -- $current) diff --git a/share/completions/wpctl.fish b/share/completions/wpctl.fish index 92a62c18a..9ed725e88 100644 --- a/share/completions/wpctl.fish +++ b/share/completions/wpctl.fish @@ -22,7 +22,7 @@ end function __wpctl_command_shape set -l shape $argv - set -l command (commandline -poc) + set -l command (commandline -pxc) set -e command[1] # Remove command name # Remove flags as we won't count them with the shape diff --git a/share/completions/wvdial.fish b/share/completions/wvdial.fish index 992f4b24e..154742869 100644 --- a/share/completions/wvdial.fish +++ b/share/completions/wvdial.fish @@ -4,7 +4,7 @@ function __fish_complete_wvdial_peers --description 'Complete wvdial peers' --ar # test if there is an alternative config file specified set -l store_next - for opt in (commandline -cpo) + for opt in (commandline -cpx) if set -q store_next[1] set store_next set cfgfiles $opt diff --git a/share/completions/xdg-mime.fish b/share/completions/xdg-mime.fish index 2498cbcc8..333919cea 100644 --- a/share/completions/xdg-mime.fish +++ b/share/completions/xdg-mime.fish @@ -9,23 +9,23 @@ complete -c xdg-mime -n 'not __fish_seen_subcommand_from query default install u complete -c xdg-mime -n '__fish_seen_subcommand_from query; and not __fish_seen_subcommand_from filetype default' -xa 'filetype default' -d 'Query information' # complete xdg-mime query default -complete -c xdg-mime -d 'Query default application for type' -n 'contains_seq query default -- (commandline -cop)' -xa '(__fish_print_xdg_mimetypes)' +complete -c xdg-mime -d 'Query default application for type' -n 'contains_seq query default -- (commandline -cxp)' -xa '(__fish_print_xdg_mimetypes)' # complete xdg-mime query filetype -complete -c xdg-mime -d 'Query file\'s filetype' -n 'contains_seq query filetype -- (commandline -cop)' -r +complete -c xdg-mime -d 'Query file\'s filetype' -n 'contains_seq query filetype -- (commandline -cxp)' -r # complete xdg-mime default complete -c xdg-mime -d 'Choose application' -n '__fish_seen_subcommand_from default; and __fish_is_nth_token 3' -xa '(__fish_print_xdg_desktop_file_ids)' complete -c xdg-mime -d Mimetype -n '__fish_seen_subcommand_from default; and __fish_is_nth_token 4' -xa '(__fish_print_xdg_mimetypes)' # complete xdg-mime install -complete -c xdg-mime -d 'Add filetype description' -n 'contains_seq xdg-mime install -- (commandline -cop)' -r -complete -c xdg-mime -d 'Set mode' -n 'contains_seq xdg-mime install -- (commandline -cop)' -l mode -xa 'user system' -complete -c xdg-mime -d 'Disable vendor check' -n 'contains_seq xdg-mime install -- (commandline -cop)' -l novendor +complete -c xdg-mime -d 'Add filetype description' -n 'contains_seq xdg-mime install -- (commandline -cxp)' -r +complete -c xdg-mime -d 'Set mode' -n 'contains_seq xdg-mime install -- (commandline -cxp)' -l mode -xa 'user system' +complete -c xdg-mime -d 'Disable vendor check' -n 'contains_seq xdg-mime install -- (commandline -cxp)' -l novendor # complete xdg-mime uninstall -complete -c xdg-mime -d 'Remove filetype description' -n 'contains_seq xdg-mime uninstall -- (commandline -cop)' -r -complete -c xdg-mime -d 'Set mode' -n 'contains_seq xdg-mime uninstall -- (commandline -cop)' -l mode -xa 'user system' +complete -c xdg-mime -d 'Remove filetype description' -n 'contains_seq xdg-mime uninstall -- (commandline -cxp)' -r +complete -c xdg-mime -d 'Set mode' -n 'contains_seq xdg-mime uninstall -- (commandline -cxp)' -l mode -xa 'user system' #complete -c xdg-mime install [--mode mode] [--novendor] mimetypes-file #complete -c xdg-mime uninstall [--mode mode] mimetypes-file diff --git a/share/completions/xinput.fish b/share/completions/xinput.fish index 6f8df0274..1b3db88b7 100644 --- a/share/completions/xinput.fish +++ b/share/completions/xinput.fish @@ -18,7 +18,7 @@ end function __fish_xinput_nth_token set -l n $argv[1] - set -l tokens (commandline -co) + set -l tokens (commandline -cx) set -e tokens[1] # remove command name # remove options set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens) diff --git a/share/completions/yadm.fish b/share/completions/yadm.fish index 1f7e2dc79..f542f90fc 100644 --- a/share/completions/yadm.fish +++ b/share/completions/yadm.fish @@ -20,7 +20,7 @@ set -l __fish_yadm_subcommands (yadm introspect commands) # Borrowed from git completion file function __fish_yadm_needs_command # Figure out if the current invocation already has a command. - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) set -e cmd[1] argparse -s (__fish_yadm_global_optspecs) -- $cmd 2>/dev/null or return 0 @@ -51,7 +51,7 @@ end # don't want to inherit all completions from git function __fish_complete_yadm_like_git # Remove the first word from the commandline because that is "yadm" - set -l cmdline (commandline -opc; commandline -ct)[2..-1] + set -l cmdline (commandline -xpc; commandline -ct)[2..-1] # `yadm gitconfig` is same as `git config` if __fish_seen_subcommand_from gitconfig diff --git a/share/completions/yum.fish b/share/completions/yum.fish index dbcde68f2..ab59cbce2 100644 --- a/share/completions/yum.fish +++ b/share/completions/yum.fish @@ -6,7 +6,7 @@ # Test if completing using package names is appropriate function __fish_yum_package_ok - for i in (commandline -poc) + for i in (commandline -pxc) if contains -- $i update upgrade remove erase install reinstall return 0 end @@ -43,13 +43,13 @@ complete -c yum -l obsoletes -d "Enables obsolets processing logic" complete -c yum -l rss-filename -d "Output rss-data to file" -r complete -c yum -l exclude -d "Exclude specified package from updates" -a "(__fish_print_rpm_packages)" -complete -c yum -n 'contains list (commandline -poc)' -a all -d 'List all packages' -complete -c yum -n 'contains list (commandline -poc)' -a available -d 'List packages available for installation' -complete -c yum -n 'contains list (commandline -poc)' -a updates -d 'List packages with updates available' -complete -c yum -n 'contains list (commandline -poc)' -a installed -d 'List installed packages' -complete -c yum -n 'contains list (commandline -poc)' -a extras -d 'List packages not available in repositories' -complete -c yum -n 'contains list (commandline -poc)' -a obsoletes -d 'List packages that are obsoleted by packages in repositories' +complete -c yum -n 'contains list (commandline -pxc)' -a all -d 'List all packages' +complete -c yum -n 'contains list (commandline -pxc)' -a available -d 'List packages available for installation' +complete -c yum -n 'contains list (commandline -pxc)' -a updates -d 'List packages with updates available' +complete -c yum -n 'contains list (commandline -pxc)' -a installed -d 'List installed packages' +complete -c yum -n 'contains list (commandline -pxc)' -a extras -d 'List packages not available in repositories' +complete -c yum -n 'contains list (commandline -pxc)' -a obsoletes -d 'List packages that are obsoleted by packages in repositories' -complete -c yum -n 'contains clean (commandline -poc)' -x -a packages -d 'Delete cached package files' -complete -c yum -n 'contains clean (commandline -poc)' -x -a headers -d 'Delete cached header files' -complete -c yum -n 'contains clean (commandline -poc)' -x -a all -d 'Delete all cache contents' +complete -c yum -n 'contains clean (commandline -pxc)' -x -a packages -d 'Delete cached package files' +complete -c yum -n 'contains clean (commandline -pxc)' -x -a headers -d 'Delete cached header files' +complete -c yum -n 'contains clean (commandline -pxc)' -x -a all -d 'Delete all cache contents' diff --git a/share/completions/zfs.fish b/share/completions/zfs.fish index 3de5e7482..732117e45 100644 --- a/share/completions/zfs.fish +++ b/share/completions/zfs.fish @@ -50,7 +50,7 @@ function __fish_zfs_needs_command end function __fish_zfs_using_command # ZFS command whose completions are looked for - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 # The token can only be 'zfs', so skip return 2 end diff --git a/share/completions/zpool.fish b/share/completions/zpool.fish index f20fa3972..405893595 100644 --- a/share/completions/zpool.fish +++ b/share/completions/zpool.fish @@ -39,7 +39,7 @@ function __fish_zpool_needs_command end function __fish_zpool_using_command # zpool command whose completions are looked for - set -l cmd (commandline -opc) + set -l cmd (commandline -xpc) if test (count $cmd) -eq 1 # The token can only be 'zpool', so skip return 2 end @@ -80,7 +80,7 @@ function __fish_zpool_complete_vdevs # First, reverse token list to analyze it from the end set -l tokens 0 - for i in (commandline -co)[-1..1] + for i in (commandline -cx)[-1..1] switch $i case spare log cache # At least 1 item expected if test $tokens -ge 1 diff --git a/share/completions/zypper.fish b/share/completions/zypper.fish index 7c4ce2f3a..4286f91b7 100644 --- a/share/completions/zypper.fish +++ b/share/completions/zypper.fish @@ -10,7 +10,7 @@ set -g __fish_zypper_download_modes only in-advance in-heaps as-needed set -g __fish_zypper_solver_focus_modes Job Installed Update function __fish_zypper_cmd_in_array - for i in (commandline -pco) + for i in (commandline -pcx) # -- is used to provide no options for contains # (if $i is equal to --optname without -- will be error) if contains -- $i $argv @@ -53,7 +53,7 @@ function __fish_zypper_print_packages set -l repo set -l type set -l idx - set -l args (commandline -poc) + set -l args (commandline -pxc) while set -q args[1] switch $args[1] case -t --type diff --git a/share/functions/__fish_any_arg_in.fish b/share/functions/__fish_any_arg_in.fish index 53ba903d2..ad8d8de75 100644 --- a/share/functions/__fish_any_arg_in.fish +++ b/share/functions/__fish_any_arg_in.fish @@ -1,7 +1,7 @@ # returns 0 only if any argument is on of the supplied arguments function __fish_any_arg_in set -l haystack $argv - for arg in (commandline -opc) + for arg in (commandline -xpc) contains -- $arg $haystack and return 0 end diff --git a/share/functions/__fish_complete_atool_archive_contents.fish b/share/functions/__fish_complete_atool_archive_contents.fish index 0a19c8217..6d03e1a6c 100644 --- a/share/functions/__fish_complete_atool_archive_contents.fish +++ b/share/functions/__fish_complete_atool_archive_contents.fish @@ -1,5 +1,5 @@ function __fish_complete_atool_archive_contents --description 'List archive contents' - set -l cmd (commandline -cop) + set -l cmd (commandline -cxp) set -e cmd[1] set -l file for arg in $cmd diff --git a/share/functions/__fish_complete_clang.fish b/share/functions/__fish_complete_clang.fish index a845fbb8b..87aad29e4 100644 --- a/share/functions/__fish_complete_clang.fish +++ b/share/functions/__fish_complete_clang.fish @@ -1,13 +1,13 @@ # This function is compatible with clang, clang++, and variations thereof, and is shared # by clang.fish and clang++.fish. -# We dynamically query the head at `(commandline -o)[1]` to get the correct completions. +# We dynamically query the head at `(commandline -x)[1]` to get the correct completions. function __fish_complete_clang # If the result is for a value, clang only prints the value, so completions # for `-std=` print `c++11` and not `-std=c++11` like we need. See #4174. set -l prefix (commandline -ct | string replace -fr -- '^(.*=)[^=]*' '$1') # Don't hard-code the name of the clang binary - set -l clang (commandline -op)[1] + set -l clang (commandline -xp)[1] # first get the completions from clang, with the prefix separated from the value by a comma $clang --autocomplete=(commandline -ct | string unescape | string replace -- "$prefix" "$prefix,") 2>/dev/null | # and put it in a format that fish understands diff --git a/share/functions/__fish_complete_man.fish b/share/functions/__fish_complete_man.fish index 3debe8861..ff0a48d4d 100644 --- a/share/functions/__fish_complete_man.fish +++ b/share/functions/__fish_complete_man.fish @@ -4,7 +4,7 @@ function __fish_complete_man # use [^)]*, which should match any section. set -l section "" set -l token (commandline -ct) - set -l prev (commandline -poc) + set -l prev (commandline -pxc) set -e prev[1] while set -q prev[1] switch $prev[1] diff --git a/share/functions/__fish_complete_mysql.fish b/share/functions/__fish_complete_mysql.fish index 7ab38fbc0..7ded690a8 100644 --- a/share/functions/__fish_complete_mysql.fish +++ b/share/functions/__fish_complete_mysql.fish @@ -1,5 +1,5 @@ function __fish_mysql_query -a query - argparse -i 'u/user=' 'P/port=' 'h/host=' 'p/password=?' 'S/socket=' -- (commandline -po) + argparse -i 'u/user=' 'P/port=' 'h/host=' 'p/password=?' 'S/socket=' -- (commandline -px) set -l mysql_cmd mysql for flag in u P h S if set -q _flag_$flag diff --git a/share/functions/__fish_complete_subcommand.fish b/share/functions/__fish_complete_subcommand.fish index 2bcc1a720..a5a05b150 100644 --- a/share/functions/__fish_complete_subcommand.fish +++ b/share/functions/__fish_complete_subcommand.fish @@ -18,7 +18,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowin set -l options_with_param $argv if not string length -q -- $subcommand - set -l cmd (commandline -cop | string escape) (commandline -ct) + set -l cmd (commandline -cxp | string escape) (commandline -ct) while set -q cmd[1] set -l token $cmd[1] set -e cmd[1] diff --git a/share/functions/__fish_contains_opt.fish b/share/functions/__fish_contains_opt.fish index 0d10d6d23..151169b4e 100644 --- a/share/functions/__fish_contains_opt.fish +++ b/share/functions/__fish_contains_opt.fish @@ -25,7 +25,7 @@ function __fish_contains_opt -d "Checks if a specific option has been given in t continue end - if string match -qr -- "^-$i|^-[^-]*$i" (commandline -cpo) + if string match -qr -- "^-$i|^-[^-]*$i" (commandline -cpx) return 0 end @@ -39,7 +39,7 @@ function __fish_contains_opt -d "Checks if a specific option has been given in t continue end - if contains -- --$i (commandline -cpo) + if contains -- --$i (commandline -cpx) return 0 end end diff --git a/share/functions/__fish_first_token.fish b/share/functions/__fish_first_token.fish index a80dfcb8c..0ab1117cb 100644 --- a/share/functions/__fish_first_token.fish +++ b/share/functions/__fish_first_token.fish @@ -1,6 +1,6 @@ # Retrieves the first non-switch argument from the command line buffer function __fish_first_token - set -l tokens (commandline -co) + set -l tokens (commandline -cx) set -e tokens[1] set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens) if set -q tokens[1] diff --git a/share/functions/__fish_is_first_arg.fish b/share/functions/__fish_is_first_arg.fish index 5eaba6dc8..f9983b0aa 100644 --- a/share/functions/__fish_is_first_arg.fish +++ b/share/functions/__fish_is_first_arg.fish @@ -1,5 +1,5 @@ # determine if this is the very first argument (regardless if switch or not) function __fish_is_first_arg - set -l tokens (commandline -poc) + set -l tokens (commandline -pxc) test (count $tokens) -eq 1 end diff --git a/share/functions/__fish_is_nth_token.fish b/share/functions/__fish_is_nth_token.fish index 2f3a535e2..f854afdd6 100644 --- a/share/functions/__fish_is_nth_token.fish +++ b/share/functions/__fish_is_nth_token.fish @@ -1,5 +1,5 @@ function __fish_is_nth_token --description 'Test if current token is the Nth (ignoring command and switches/flags)' --argument-names n - set -l tokens (commandline -poc) + set -l tokens (commandline -pxc) set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens) test (count $tokens) -eq "$n" end diff --git a/share/functions/__fish_man_page.fish b/share/functions/__fish_man_page.fish index 288f84e07..44b9bb26a 100644 --- a/share/functions/__fish_man_page.fish +++ b/share/functions/__fish_man_page.fish @@ -1,6 +1,6 @@ function __fish_man_page # Get all commandline tokens not starting with "-", up to and including the cursor's - set -l args (string match -rv '^-|^$' -- (commandline -cpo && commandline -t)) + set -l args (string match -rv '^-|^$' -- (commandline -cpx && commandline -t)) # If commandline is empty, exit. if not set -q args[1] diff --git a/share/functions/__fish_no_arguments.fish b/share/functions/__fish_no_arguments.fish index 3be1f43de..8dea4467f 100644 --- a/share/functions/__fish_no_arguments.fish +++ b/share/functions/__fish_no_arguments.fish @@ -1,6 +1,6 @@ function __fish_no_arguments -d "Internal fish function" - set -l cmd (commandline -poc) (commandline -tc) + set -l cmd (commandline -pxc) (commandline -tc) set -e cmd[1] for i in $cmd switch $i diff --git a/share/functions/__fish_not_contain_opt.fish b/share/functions/__fish_not_contain_opt.fish index 809f5baa9..87cf573b5 100644 --- a/share/functions/__fish_not_contain_opt.fish +++ b/share/functions/__fish_not_contain_opt.fish @@ -26,7 +26,7 @@ function __fish_not_contain_opt -d "Checks that a specific option is not in the continue end - if string match -qr -- "^-$i|^-[^-]*$i" (commandline -cpo) + if string match -qr -- "^-$i|^-[^-]*$i" (commandline -cpx) return 1 end @@ -40,7 +40,7 @@ function __fish_not_contain_opt -d "Checks that a specific option is not in the continue end - if contains -- --$i (commandline -cpo) + if contains -- --$i (commandline -cpx) return 1 end end diff --git a/share/functions/__fish_nth_token.fish b/share/functions/__fish_nth_token.fish index 597bb15ee..e41e83e56 100644 --- a/share/functions/__fish_nth_token.fish +++ b/share/functions/__fish_nth_token.fish @@ -1,5 +1,5 @@ function __fish_nth_token --description 'Prints the Nth token (ignoring command and switches/flags)' --argument-names n - set -l tokens (commandline -po | string replace -r --filter '^([^-].*)' '$1') + set -l tokens (commandline -px | string replace -r --filter '^([^-].*)' '$1') # Increment $n by one to account for ignoring the command if test (count $tokens) -ge (math "$n" + 1) echo $tokens[(math $n + 1)] diff --git a/share/functions/__fish_prev_arg_in.fish b/share/functions/__fish_prev_arg_in.fish index cddc3ebfc..41fa241fd 100644 --- a/share/functions/__fish_prev_arg_in.fish +++ b/share/functions/__fish_prev_arg_in.fish @@ -1,6 +1,6 @@ # returns 0 only if previous argument is one of the supplied arguments function __fish_prev_arg_in - set -l tokens (commandline -co) + set -l tokens (commandline -cx) set -l tokenCount (count $tokens) if test $tokenCount -lt 2 # need at least cmd and prev argument diff --git a/share/functions/__fish_preview_current_file.fish b/share/functions/__fish_preview_current_file.fish index f2fc53c1e..f2f3751fd 100644 --- a/share/functions/__fish_preview_current_file.fish +++ b/share/functions/__fish_preview_current_file.fish @@ -11,7 +11,7 @@ function __fish_preview_current_file --description "Open the file at the cursor # $backslash will parsed as regex which may need additional escaping. set -l backslash '\\\\' not status test-feature regex-easyesc && set backslash $backslash$backslash - set file (string replace -ra -- '([ ;#^<>&|()"\'])' "$backslash\$1" (commandline -oc)[-1]) + set file (string replace -ra -- '([ ;#^<>&|()"\'])' "$backslash\$1" (commandline -xc)[-1]) set prefix set end diff --git a/share/functions/__fish_print_cmd_args.fish b/share/functions/__fish_print_cmd_args.fish index eaafe65a3..29129afcc 100644 --- a/share/functions/__fish_print_cmd_args.fish +++ b/share/functions/__fish_print_cmd_args.fish @@ -1,3 +1,3 @@ function __fish_print_cmd_args - commandline -poc + commandline -pxc end diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish index 147d43144..0c409aec7 100644 --- a/share/functions/__fish_print_hostnames.fish +++ b/share/functions/__fish_print_hostnames.fish @@ -38,7 +38,7 @@ function __fish_print_hostnames -d "Print a list of known hostnames" if functions -q ssh # Get alias and commandline options. set -l ssh_func_tokens (functions ssh | string match '*command ssh *' | string split ' ') - set -l ssh_command $ssh_func_tokens (commandline -cpo) + set -l ssh_command $ssh_func_tokens (commandline -cpx) # Extract ssh config path from last -F short option. if contains -- -F $ssh_command set -l ssh_config_path_is_next 1 diff --git a/share/functions/__fish_seen_argument.fish b/share/functions/__fish_seen_argument.fish index 9774774ab..0b1eec1a7 100644 --- a/share/functions/__fish_seen_argument.fish +++ b/share/functions/__fish_seen_argument.fish @@ -1,7 +1,7 @@ function __fish_seen_argument --description 'Check whether argument is used' argparse --ignore-unknown 's/short=+' 'o/old=+' 'l/long=+' 'w/windows=+' -- $argv - set --local tokens (commandline --current-process --tokenize --cut-at-cursor) + set --local tokens (commandline --current-process --expand-tokens --cut-at-cursor) set --erase tokens[1] for t in $tokens diff --git a/share/functions/__fish_seen_subcommand_from.fish b/share/functions/__fish_seen_subcommand_from.fish index b01498ed2..92e14213e 100644 --- a/share/functions/__fish_seen_subcommand_from.fish +++ b/share/functions/__fish_seen_subcommand_from.fish @@ -5,7 +5,7 @@ # function __fish_seen_subcommand_from - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] for i in $cmd if contains -- $i $argv diff --git a/share/functions/__fish_systemctl.fish b/share/functions/__fish_systemctl.fish index ed3f78428..b6aee1a5b 100644 --- a/share/functions/__fish_systemctl.fish +++ b/share/functions/__fish_systemctl.fish @@ -13,7 +13,7 @@ function __fish_systemctl --description 'Call systemctl with some options from t set opts $opts 1-no-pager 2-no-legend h/help 3-version set -l args $argv - set -l cmdline (commandline -opc) (commandline -ct) + set -l cmdline (commandline -xpc) (commandline -ct) set -e cmdline[1] argparse $opts -- $cmdline 2>/dev/null or return diff --git a/share/functions/__fish_use_subcommand.fish b/share/functions/__fish_use_subcommand.fish index a2b84c5ff..1e86ef998 100644 --- a/share/functions/__fish_use_subcommand.fish +++ b/share/functions/__fish_use_subcommand.fish @@ -1,6 +1,6 @@ function __fish_use_subcommand -d "Test if a non-switch argument has been given in the current commandline" - set -l cmd (commandline -poc) + set -l cmd (commandline -pxc) set -e cmd[1] for i in $cmd switch $i diff --git a/tests/checks/complete.fish b/tests/checks/complete.fish index 80fa5042a..65f23d852 100644 --- a/tests/checks/complete.fish +++ b/tests/checks/complete.fish @@ -135,7 +135,7 @@ complete -C'foo -z' # Builtins (with subcommands; #2705) -complete -c complete_test_subcommand -n 'test (commandline -op)[1] = complete_test_subcommand' -xa ok +complete -c complete_test_subcommand -n 'test (commandline -xp)[1] = complete_test_subcommand' -xa ok complete -C'not complete_test_subcommand ' # CHECK: ok complete -C'echo; and complete_test_subcommand ' @@ -463,7 +463,7 @@ complete -C 'crookshanks ' # CHECK: +pet # Custom completion works with variable overrides. -complete cmd_with_fancy_completion -xa '(commandline -opc | count)' +complete cmd_with_fancy_completion -xa '(commandline -xpc | count)' complete -C"a=1 b=2 cmd_with_fancy_completion " # CHECK: 1 complete -C"a=1 b=2 cmd_with_fancy_completion 1 " @@ -473,17 +473,17 @@ complete -c thing -x -F # CHECKERR: complete: invalid option combination, '--exclusive' and '--force-files' # Multiple conditions complete -f -c shot -complete -fc shot -n 'test (count (commandline -opc) -eq 1' -n 'test (commandline -opc)[-1] = shot' -a 'through' -# CHECKERR: complete: -n 'test (count (commandline -opc) -eq 1': Unexpected end of string, expecting ')' -# CHECKERR: test (count (commandline -opc) -eq 1 +complete -fc shot -n 'test (count (commandline -xpc) -eq 1' -n 'test (commandline -xpc)[-1] = shot' -a 'through' +# CHECKERR: complete: -n 'test (count (commandline -xpc) -eq 1': Unexpected end of string, expecting ')' +# CHECKERR: test (count (commandline -xpc) -eq 1 # CHECKERR: ^ -complete -fc shot -n 'test (count (commandline -opc)) -eq 1' -n 'test (commandline -opc)[-1] = shot' -a 'through' -complete -fc shot -n 'test (count (commandline -opc)) -eq 2' -n 'test (commandline -opc)[-1] = through' -a 'the' -complete -fc shot -n 'test (count (commandline -opc)) -eq 3' -n 'test (commandline -opc)[-1] = the' -a 'heart' -complete -fc shot -n 'test (count (commandline -opc)) -eq 4' -n 'test (commandline -opc)[-1] = heart' -a 'and' -complete -fc shot -n 'test (count (commandline -opc)) -eq 5' -n 'test (commandline -opc)[-1] = and' -a "you\'re" -complete -fc shot -n 'test (count (commandline -opc)) -eq 6' -n 'test (commandline -opc)[-1] = "you\'re"' -a 'to' -complete -fc shot -n 'test (count (commandline -opc)) -eq 7' -n 'test (commandline -opc)[-1] = to' -a 'blame' +complete -fc shot -n 'test (count (commandline -xpc)) -eq 1' -n 'test (commandline -xpc)[-1] = shot' -a 'through' +complete -fc shot -n 'test (count (commandline -xpc)) -eq 2' -n 'test (commandline -xpc)[-1] = through' -a 'the' +complete -fc shot -n 'test (count (commandline -xpc)) -eq 3' -n 'test (commandline -xpc)[-1] = the' -a 'heart' +complete -fc shot -n 'test (count (commandline -xpc)) -eq 4' -n 'test (commandline -xpc)[-1] = heart' -a 'and' +complete -fc shot -n 'test (count (commandline -xpc)) -eq 5' -n 'test (commandline -xpc)[-1] = and' -a "you\'re" +complete -fc shot -n 'test (count (commandline -xpc)) -eq 6' -n 'test (commandline -xpc)[-1] = "you\'re"' -a 'to' +complete -fc shot -n 'test (count (commandline -xpc)) -eq 7' -n 'test (commandline -xpc)[-1] = to' -a 'blame' complete -C"shot " # CHECK: through diff --git a/tests/checks/contains_opt.fish b/tests/checks/contains_opt.fish index 70bfeb56e..3d4c66592 100644 --- a/tests/checks/contains_opt.fish +++ b/tests/checks/contains_opt.fish @@ -2,7 +2,7 @@ function commandline if test $argv[1] = -ct echo --long4\n-4 - else if test $argv[1] = -cpo + else if test $argv[1] = -cpx echo cmd\n-z\n-bc\n--long1\narg1\n-d\narg2\n--long2 end end diff --git a/tests/checks/wraps.fish b/tests/checks/wraps.fish index 15a76a312..9c93e3420 100644 --- a/tests/checks/wraps.fish +++ b/tests/checks/wraps.fish @@ -21,7 +21,7 @@ complete -C 'testcommand 0' # This tests that a call to complete from within a completion doesn't trigger # wrap chain explosion - #5638 again. function testcommand2_complete - set -l tokens (commandline -opc) (commandline -ct) + set -l tokens (commandline -xpc) (commandline -ct) set -e tokens[1] echo $tokens 1>&2 end diff --git a/tests/pexpects/commandline.py b/tests/pexpects/commandline.py index 6948bf489..ff75c050f 100644 --- a/tests/pexpects/commandline.py +++ b/tests/pexpects/commandline.py @@ -25,7 +25,7 @@ expect_prompt("\r\n@GUARD:1@\r\n(.*)\r\n@/GUARD:1@\r\n") # printing the buffer with -o should remove quoting sendline( - "function handle_tilde; echo; echo '@GUARD:2@'; commandline -bo; echo '@/GUARD:2@'; commandline -b ''; end" + "function handle_tilde; echo; echo '@GUARD:2@'; commandline -bx; echo '@/GUARD:2@'; commandline -b ''; end" ) expect_prompt() sendline("echo one \"two three\" four'five six'{7} 'eight~") diff --git a/tests/pexpects/complete.py b/tests/pexpects/complete.py index c862f9469..9f3b8ac45 100644 --- a/tests/pexpects/complete.py +++ b/tests/pexpects/complete.py @@ -36,9 +36,9 @@ sendline( """ # Make sure this function does nothing function my_is; :; end - complete -c my_is -n 'test (count (commandline -opc)) = 1' -xa arg + complete -c my_is -n 'test (count (commandline -xpc)) = 1' -xa arg complete -c my_is -n '__fish_seen_subcommand_from not' -xa '( - set -l cmd (commandline -opc) (commandline -ct) + set -l cmd (commandline -xpc) (commandline -ct) set cmd (string join " " my_is $cmd[3..-1])" " commandline --replace --current-process $cmd complete -C"$cmd"