complete-f-c opam -l'help'-d"Display the manual for an OPAM command."
complete-f-c opam -l version -d'Show version information.'
## ones that require at least a subcommand (but are shared by all)
### colour
complete-f-c opam -n'not __fish_opam_needs_command'-l color -d'Colorize the output. WHEN must be `always\', `never\' or `auto\'.'
complete-f-c opam -n'__fish_opam_at_color'-a'always never auto'
### rest
complete-f-c opam -n'not __fish_opam_needs_command'-l'compat-mode-1.0'-d'Compatibility mode with OPAM 1.0'
complete-f-c opam -n'not __fish_opam_needs_command'-l debug -d'Print debug message on stdout.'
complete-f-c opam -n'not __fish_opam_needs_command'-l git-version -d'Print the git version if it exists and exit.'
complete-f-c opam -n'not __fish_opam_needs_command'-l no-aspcud -d'Do not use the external aspcud solver, even if available.'
complete-f-c opam -n'not __fish_opam_needs_command'-l no-base-packages -d'Do not install base packages (useful for testing purposes).'
complete-f-c opam -n'not __fish_opam_needs_command'-s q -l quiet -d'Be quiet when installing a new compiler.'
complete-f-c opam -n'not __fish_opam_needs_command'-s r -l root -d'Use ROOT as the current root path.'
complete-f-c opam -n'not __fish_opam_needs_command'-l strict -d'Fail whenever an error is found in a package definition or a configuration file. The default is to continue silently if possible.'
complete-f-c opam -n'not __fish_opam_needs_command'-l switch -d'Use SWITCH as the current compiler switch.'
complete-f-c opam -n'not __fish_opam_needs_command'-s v -l verbose -d'Be more verbose.'
complete-f-c opam -n'not __fish_opam_needs_command'-s y -l yes -d'Disable interactive mode and answer yes to all questions that would otherwise be asked to the user.'
# subcommands
## config
complete-f-c opam -n'__fish_opam_needs_command'-a config -d"Display configuration options for packages."
### config flags
complete-f-c opam -n'__fish_opam_using_command config'-s a -l all --description'Enable all the global and user configuration options.'
complete-f-c opam -n'__fish_opam_using_command config'-a env -d'Return the environment variables PATH, MANPATH, OCAML_TOPLEVEL_PATH and CAML_LD_LIBRARY_PATH according to the currently selected compiler.'
complete-f-c opam -n'__fish_opam_using_command config'-a setup -d'Configure global and user parameters for OPAM. [see manpage]'#TODO
complete-f-c opam -n'__fish_opam_using_command config'-aexec-d'Execute the shell script given in parameter with the correct environment variables. [see manpage]'
complete-f-c opam -n'__fish_opam_using_command config'-a var -d'Return the value associated with the given variable. [see manpage]'
complete-f-c opam -n'__fish_opam_using_command config'-a list -d'Return the list of all variables defined in the listed packages. [see manpage]'
complete-f-c opam -n'__fish_opam_using_command config'-a subst -d'Substitute variables in the given files. The strings %{var}% are replaced by the value of the variable var [see manpage]'
complete-f-c opam -n'__fish_opam_using_command config'-a includes -d'returns include options.'