diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-11-28 14:40:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-11-28 14:40:49 +0100 |
commit | 1588644f924bb702e56a007be629c54cf14e5e5d (patch) | |
tree | 452a702f31988486c19ce4330f6c03283aab9e26 /src | |
parent | add manpage (diff) | |
download | gpp-1588644f924bb702e56a007be629c54cf14e5e5d.tar.gz gpp-1588644f924bb702e56a007be629c54cf14e5e5d.tar.bz2 gpp-1588644f924bb702e56a007be629c54cf14e5e5d.tar.xz |
m + add shell tab-completion
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpp.auto-completion | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gpp.auto-completion b/src/gpp.auto-completion new file mode 100644 index 0000000..6727fb3 --- /dev/null +++ b/src/gpp.auto-completion @@ -0,0 +1,33 @@ +(#{GPP} + (argumented (option -s --symbol) (complete --symbol) (arg SYMBOL) (files -0) + (desc 'Set the prefix symbol for preprocessor directives')) + + (argumented (option -e --encoding) (complete --encoding) (arg ENCODING) (files -0) (suggest encoding) + (desc 'Select encoding of the file')) + (suggestion encoding (verbatim UTF-8)) + + (argumented (option -n --iterations) (complete --iterations) (arg N) (files -0) + (desc 'Select the number of times to perform the preprocessing recursively')) + + (unargumented (option -u --unshebang) (complete --unshebang) + (desc 'Clear the shebang line, twice to delete it')) + + (argumented (option -i --input) (complete --input) (arg FILE) (files -f) + (desc 'Select file to process')) + + (argumented (option -i --output) (complete --output) (arg FILE) (files -f) + (desc 'Select output file')) + + (argumented (option -f --file) (complete --file) (arg FILE) (files -r) + (desc 'Select file to both process and store the output')) + + (argumented (option -D --export) (complete --export) (arg NAME=VALUE) (files -0) + (desc 'Set environment variable')) + + (unargumented (option -v --version) (complete --version) + (desc 'Print program name and version and exit')) + + (unargumented (option -c --copying) (complete --copying) + (desc 'Print copyright notice and exit')) +) + |