aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-10-29 02:57:03 +0100
committerMattias Andrée <maandree@operamail.com>2012-10-29 02:57:03 +0100
commit196a330058125c0a1715f0c8b72d984574b8b971 (patch)
tree0a95ec93899cc3ac58db9daaf3057315d328f419 /example
parentfish completion (diff)
downloadauto-auto-complete-196a330058125c0a1715f0c8b72d984574b8b971.tar.gz
auto-auto-complete-196a330058125c0a1715f0c8b72d984574b8b971.tar.bz2
auto-auto-complete-196a330058125c0a1715f0c8b72d984574b8b971.tar.xz
default arguments
Diffstat (limited to 'example')
-rw-r--r--example5
1 files changed, 4 insertions, 1 deletions
diff --git a/example b/example
index 4316d50..2c7b1f7 100644
--- a/example
+++ b/example
@@ -1,5 +1,6 @@
(ponysay
-
+ (default (arg MESSAGE) (files -0) (suggest message) (desc 'Message spoken by the pony'))
+
(multiple unargumented
((options -h --help) (complete --help) (desc 'Show summary of options'))
((options -v --version) (complete --version) (desc 'Show version of program'))
@@ -38,6 +39,8 @@
(variadic (options ++f ++files ++ponies) (bind +f) (desc 'Specify the extraponies that may be printed'))
(variadic (options --q --quotes) (bind -q) (desc 'Specify the pony that may quote themself'))
+ (suggestion message (verbatim MESSAGE)
+ )
(suggestion pony-f (exec "'/usr/bin/ponysay'" --onelist)
(no-exec ls "'/usr/share/ponysay/ponies'" .pony)
)