summaryrefslogtreecommitdiff
path: root/Completion/Solaris/Command/_dumpadm
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2016-12-04 04:32:03 +0100
committerAxel Beckert <abe@deuxchevaux.org>2016-12-04 04:32:03 +0100
commit3e439c3863f14c82f70666804c8570a13b3732e6 (patch)
tree07036c43e0f3f9242bb6dd42cd2a849ec8ea8aca /Completion/Solaris/Command/_dumpadm
parent2aedc4b88fd0e87b89583983951b04b96f48efd3 (diff)
parent7b7e84f0815ed22a0ee348a217776529035dccf3 (diff)
downloadzsh-3e439c3863f14c82f70666804c8570a13b3732e6.tar.gz
zsh-3e439c3863f14c82f70666804c8570a13b3732e6.zip
Merge tag 'zsh-5.2-test-1' into debian
Diffstat (limited to 'Completion/Solaris/Command/_dumpadm')
-rw-r--r--Completion/Solaris/Command/_dumpadm39
1 files changed, 19 insertions, 20 deletions
diff --git a/Completion/Solaris/Command/_dumpadm b/Completion/Solaris/Command/_dumpadm
index 02c63f6a7..44d681ae0 100644
--- a/Completion/Solaris/Command/_dumpadm
+++ b/Completion/Solaris/Command/_dumpadm
@@ -1,23 +1,22 @@
#compdef dumpadm
-_dumpadm() {
- local -a content
+local -a content
- content=(
- "kernel"\:"Kernel memory pages only"
- "all"\:"All memory pages"
- "curproc"\:"Kernel memory pages plus curproc pages"
- )
-
- _arguments -s \
- '-n[dont run savecore on reboot]' \
- '-u[update dump configuration from dumpadm.conf]' \
- '-y[run savecore on reboot]' \
- '-c[set dump content]:dump content:(($content))' \
- '-d[set dump device]:block devices:_files -g "*(-%b)"' \
- '-m[set minfree size ]:' \
- '-s[set the savecore directory]:directory:_files -/' \
- '-r[alternate root directory]:directory:_files -/'
-}
-
-_dumpadm "$@"
+content=(
+ 'kernel:kernel memory pages only'
+ 'all:all memory pages'
+ 'curproc:kernel memory pages plus curproc pages'
+ 'allproc:kernel memory pages and all process pages'
+)
+_arguments -s \
+ '-e[print estimate of disk space required to store compressed crash dump]' \
+ "-n[don't run savecore on reboot]" \
+ '-p[produce machine parseable output]' \
+ '-u[update dump configuration from dumpadm.conf]' \
+ '-y[run savecore on reboot]' \
+ '-c[set dump content]:dump content:(($content))' \
+ '-d[set dump device]: : _alternative "tokens\:token\:(swap none)" "files\:block device\:_files -g \*\(-%b\)"' \
+ '-m[set minfree size]:size' \
+ '-s[set the savecore directory]:directory:_files -/' \
+ '-r[alternate root directory]:directory:_files -/' \
+ '-z[enable saving core files in a compressed format]:compression:(on off)'