#compdef kpartx _arguments -s -w : \ '-a[add partition mappings]' \ '-r[read-only partition mappings]' \ '-d[delete partition mappings]' \ '-u[update partition mappings]' \ '-l[list partition mappings]' \ '-p[set device name-partition number delimiter]' \ '-f[force creation of mappings]' \ '-g[force GUID partition table]' \ '-v[Operate verbosely]' \ '-s[don'\''t return until the partitions are created]' \ '1: : _files'