[go: up one dir, main page]

File: _andi

package info (click to toggle)
andi 0.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 988 kB
  • sloc: ansic: 2,296; sh: 426; cpp: 99; makefile: 76; awk: 51
file content (42 lines) | stat: -rwxr-xr-x 1,932 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#compdef andi

# This file allows zsh to complete arguments for andi. As the syntax is
# totally non-obvious, I'll explain the basics here. For details see
#  http://zsh.sourceforge.net/Doc/Release/Completion-System.html
# Each line consists of three parts: (A){B}[C]
# The B part performs brace expansion as on the commandline. Thus each
# line with braces gets translated into multiple arguments! Also the
# B part lists the relevant argument for which we are trying to set
# the completion rules. The A part simply states that B shall not be
# completed if A is already present. i.e. Most flags only make sense once,
# with the exception of -v. The string C is simply the message that is
# displayed to the user.

local info="-h --help --version"
local ret=1
local -a args

args+=(
	"($info -b --bootstrap)"{-b+,--bootstrap=}'[Print additional bootstrap matrices]:int:'
	"($info)*--file-of-filenames=[Read additional filenames from file; one per line]:file:_files"
	"($info -j --join)"{-j,--join}'[Treat all sequences from one file as a single genome]'
	"($info -l --low-memory)"{-l,--low-memory}'[Use less memory at the cost of speed]'
	"($info -m --model)"{-m+,--model=}'[Pick an evolutionary model]:model:((
		Raw\:Uncorrected\ distances
		JC\:Jukes\-Cantor\ corrected
		Kimura\:Kimura\-two\-parameter
		LogDet\:Logarithmic\ determinant
	))'
	"($info)-p+[Significance of an anchor; default\: 0.025]:float:"
	"($info)--progress=[Show progress bar]:when:(always auto never)"
	"($info -t --threads)"{-t+,--threads=}'[The number of threads to be used; by default, all available processors are used]:num_threads:'
	"($info)--truncate-names[Print only the first ten characters of each name]"
	"($info)*"{-v,--verbose}'[Prints additional information]'
	'(- *)'{-h,--help}'[Display help and exit]'
	'(- *)--version[Output version information and acknowledgments]'
	'*:file:_files'
)

_arguments -w -s -S $args[@] && ret=0

return ret