#compdef hsavmcore

function _hsavmcore {

	_arguments -C -A "*" \
		"--config[Path to the configuration file.
Default: no configuration file is used]" \
		"--vmcore[Path to the vmcore file.
Default: /proc/vmcore]" \
		"--hsa[Path to the zcore HSA file.
Default: /sys/kernel/debug/zcore/hsa]" \
		"--workdir[Path to the work directory where temporary files can be stored.
Default: /var/crash]" \
		"--bmvmcore[Path to the target of the bind mount for the vmcore replacement.
Default: /proc/vmcore]" \
		"--swap[Path to a swap device or file. The specified swap device or file must exist and have the proper swap format.
Default: no swap device or file is activated]" \
		"--hsasize[HSA size in bytes.
Default: -1 (read from the zcore HSA file)]" \
		"--dbgfsmnt[Mount the debug file system.
Default: the debug file system is not mounted]" \
		"--hsamem[Cache the HSA memory in regular memory.
Default: the HSA memory is cached as a file within WORKDIR]" \
		"--norelhsa[Do NOT release the HSA memory after caching.
Default: the HSA memory is released]" \
		"--nobindmnt[Do NOT replace the system's vmcore.
Default: the system's vmcore is replaced]" \
		"--verbose[Print verbose messages to stdout. Repeat this option for increased verbosity from just error messages to also include warning,  information, debug, and trace messages. This option is intended for debugging]" \
		"--fusedbg[Enable FUSE debugging.
Default: FUSE debugging is disabled]" \
		"--help[Print this help, then exit]" \
		"--version[Print version information, then exit]" \
		"*:files:_files"
}
