-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path_qhs
More file actions
18 lines (17 loc) · 1.01 KB
/
_qhs
File metadata and controls
18 lines (17 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#compdef qhs
_qhs()
{
_arguments -s -S \
'(-H --skip-header)'{-H,--skip-header}'[use the first row for column names]' \
'(-O --output-header)'{-O,--output-header}'[output the header line]' \
'(-d --delimiter -t --tab-delimited)'{-d,--delimiter=}'[field delimiter]:DELIMITER' \
'(-d --delimiter -t --tab-delimited)'{-t,--tab-delimited}'[use tab for field delimiter]' \
'(-D --output-delimiter -T --tab-delimited-output)'{-D,--output-delimiter=}'[field delimiter of output]:OUTPUT_DELIMITER' \
'(-D --output-delimiter -T --tab-delimited-output)'{-T,--tab-delimited-output}'[use tab for field delimiter of output]' \
'(-k --keep-leading-whitespace)'{-k,--keep-leading-whitespace}'[keep leading whitespace in values]' \
'(-z --gzipped)'{-z,--gzipped}'[assuming the gzipped input]' \
'(-q --query-filename 1)'{-q,--query-filename=}'[read query from file]:QUERY_FILENAME:_files' \
'(- 1)'{-v,--version}'[print version]' \
'(- 1)'{-h,--help}'[print help]' \
'1: :_guard "^-*" "SQL query"'
}