Module framework

Source

Re-exportsยง

pub use app_cmds::AppCmds;
pub use aux_cmds::AuxCmds;
pub use extensions::Extension;
pub use extensions::ExtensionTOML;
pub use extensions::Extensions;
pub use helps::CmdHelps;
pub use helps::CmdSrc;
pub use plugins::Plugins;

Modulesยง

app_cmds
aux_cmds
cmd_gen_helpers
core_cmds
extensions
helps
plugins

Macrosยง

add_mode_opt ๐Ÿ”’
add_target_opt ๐Ÿ”’
cache ๐Ÿ”’
conflict_err_msg ๐Ÿ”’
processing_exts ๐Ÿ”’

Structsยง

Arg
ArgTOML
CmdOptCache
Command
CommandTOML
CommandsToml ๐Ÿ”’
Opt
OptTOML

Constantsยง

HELP_OPT_NAME
HELP_OPT_SHORT_NAME
MODE_OPT_NAME
NO_TARGET_OPT_ALIAS
NO_TARGET_OPT_NAME
REF_DIR_OPT_LNAS
RESERVED_OPT_NAMES
RESERVED_OPT_SHORT_NAMES
TARGET_OPT_ALIAS
TARGET_OPT_NAME
TARGET_OPT_SN
VERBOSITY_KEYWORDS_OPT_LONG_NAME
VERBOSITY_KEYWORDS_OPT_NAME
VERBOSITY_OPT_LNA
VERBOSITY_OPT_NAME
VERBOSITY_OPT_SHORT_NAME
VOV_OPT_NAME

Staticsยง

VERBOSITY_HELP_STR ๐Ÿ”’
VERBOSITY_KEYWORD_HELP_STR ๐Ÿ”’

Traitsยง

Applies

Functionsยง

add_all_app_opts
add_app_opts
add_verbosity_opts
apply_args ๐Ÿ”’
apply_opts ๐Ÿ”’
build_commands ๐Ÿ”’
build_path
promote_leading_positionals ๐Ÿ”’
Clap rejects a definition in which an optional positional precedes a required one, because filling positionals in order makes it impossible to tell which argument a lone value belongs to. Clap 3 silently accepted the definition and then always filled the earlier positional first, so it was effectively required regardless of how it was declared. Promote those arguments so the declaration matches the behavior users already had, and say so, rather than aborting on a parser assertion.