# All these options should be valid for GNU and OSX sudo
complete-c sudo -n"__fish_no_arguments"-s h -d"Display help and exit"
complete-c sudo -n"__fish_no_arguments"-s V -d"Display version information and exit"
complete-c sudo -n"__fish_sudo_no_subcommand"-s A -d"Ask for password via the askpass or \$SSH_ASKPASS program"
complete-c sudo -n"__fish_sudo_no_subcommand"-s C -d"Close all file descriptors greater or equal to the given number"-a"(seq 0 255)"
complete-c sudo -n"__fish_sudo_no_subcommand"-s E -d"Preserve environment"
complete-c sudo -n"__fish_sudo_no_subcommand"-s H -d"Set home"
complete-c sudo -n"__fish_sudo_no_subcommand"-s K -d"Remove the credential timestamp entirely"
complete-c sudo -n"__fish_sudo_no_subcommand"-s P -d"Preserve group vector"
complete-c sudo -n"__fish_sudo_no_subcommand"-s S -d"Read password from stdin"
complete-c sudo -n"__fish_sudo_no_subcommand"-s b -d"Run command in the background"
complete-c sudo -n"__fish_sudo_no_subcommand"-s e -r-d"Edit"
complete-c sudo -n"__fish_sudo_no_subcommand"-s g -a"(__fish_complete_groups)"-x-d"Run command as group"
complete-c sudo -n"__fish_sudo_no_subcommand"-s i -d"Run a login shell"
complete-c sudo -n"__fish_sudo_no_subcommand"-s k -d"Reset or ignore the credential timestamp"
complete-c sudo -n"__fish_sudo_no_subcommand"-s l -d"List the allowed and forbidden commands for the given user, or the full path to the given command if it is allowed"
complete-c sudo -n"__fish_sudo_no_subcommand"-s n -d"Do not prompt for a password - if one is needed, fail"
complete-c sudo -n"__fish_sudo_no_subcommand"-s p -d"Specify a custom password prompt"
complete-c sudo -n"__fish_sudo_no_subcommand"-s s -d"Run the given command in a shell"
complete-c sudo -n"__fish_sudo_no_subcommand"-s u -a"(__fish_complete_users)"-x-d"Run command as user"
complete-c sudo -n"__fish_sudo_no_subcommand"-s v -n"__fish_no_arguments"-d"Validate the credentials, extending timeout"