Provides hints about argument types for shell command completion.
clap_generate crate for completion script generation.
Overview of which hints are supported by which shell:
fish completions currently only support named arguments (e.g. -o or –opt), not positional arguments. ↩
Default value if hint is not specified. Follows shell default behavior, which is usually auto-completing filenames.
None of the hints below apply. Disables shell completion for this argument.
Any existing path.
Path to a file.
Path to a directory.
Path to an executable file.
Name of a command, without arguments. May be relative to PATH, or full path to executable.
A single string containing a command and its arguments.
Capture the remaining arguments as a command name and arguments for that command. This is
common when writing shell wrappers that execute anther command, for example
This hint is special, the argument must be a positional argument and have
.multiple(true) and App must use
AppSettings::TrailingVarArg. The result is that the
my_app ls -la / will be parsed as
["ls", "-la", "/"] and clap won’t try to
-la argument itself.
Name of a local operating system user.
Host name of a computer.
Shells usually parse
.ssh/known_hosts to complete hostnames.
Complete web address.
The associated error which can be returned from parsing.
impl StructuralPartialEq for ValueHint[src]
impl RefUnwindSafe for ValueHint
impl UnwindSafe for ValueHint
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.