Debian Codegraph @

scripts/_andi

raw
1 #compdef andi
2
3 # This file allows zsh to complete arguments for andi. As the syntax is
4 # totally non-obvious, I'll explain the basics here. For details see
5 # http://zsh.sourceforge.net/Doc/Release/Completion-System.html
6 # Each line consists of three parts: (A){B}[C]
7 # The B part performs brace expansion as on the commandline. Thus each
8 # line with braces gets translated into multiple arguments! Also the
9 # B part lists the relevant argument for which we are trying to set
10 # the completion rules. The A part simply states that B shall not be
11 # completed if A is already present. i.e. Most flags only make sense once,
12 # with the exception of -v. The string C is simply the message that is
13 # displayed to the user.
14
15 local info="-h --help --version"
16 local ret=1
17 local -a args
18
19 args+=(
20 "($info -b --bootstrap)"{-b+,--bootstrap=}'[Print additional bootstrap matrices]:int:'
21 "($info)*--file-of-filenames=[Read additional filenames from file; one per line]:file:_files"
22 "($info -j --join)"{-j,--join}'[Treat all sequences from one file as a single genome]'
23 "($info -l --low-memory)"{-l,--low-memory}'[Use less memory at the cost of speed]'
24 "($info -m --model)"{-m+,--model=}'[Pick an evolutionary model]:model:((
25 Raw\:Uncorrected\ distances
26 JC\:Jukes\-Cantor\ corrected
27 Kimura\:Kimura\-two\-parameter
28 LogDet\:Logarithmic\ determinant
29 ))'
30 "($info)-p+[Significance of an anchor; default\: 0.025]:float:"
31 "($info)--progress=[Show progress bar]:when:(always auto never)"
32 "($info -t --threads)"{-t+,--threads=}'[The number of threads to be used; by default, all available processors are used]:num_threads:'
33 "($info)--truncate-names[Print only the first ten characters of each name]"
34 "($info)*"{-v,--verbose}'[Prints additional information]'
35 '(- *)'{-h,--help}'[Display help and exit]'
36 '(- *)--version[Output version information and acknowledgments]'
37 '*:file:_files'
38 )
39
40 _arguments -w -s -S $args[@] && ret=0
41
42 return ret