#compdef btrfs-snapshots

_arguments -s -S -A "-*" : \
    "(- : *)"{-h,--help}"[show the help text]" \
    "(- : *)"{-v,--version}"[show the version number]" \
    ':action:((
        "list\:print snapshot paths"
        "create\:create new snapshots"
        "prune\:delete old snapshots"
    ))' \
    "*:: :_btrfs-snapshots_profile_names"
