pub struct Cli {Show 13 fields
pub test: bool,
pub mkdir: bool,
pub overwrite: bool,
pub extension: bool,
pub directory: Option<PathBuf>,
pub max_depth: Option<usize>,
pub depth: Option<usize>,
pub generate: Option<PathBuf>,
pub print: bool,
pub map: Option<PathBuf>,
pub sort: Option<Order>,
pub regex: Option<String>,
pub output: Vec<String>,
}Fields§
§test: boolRuns in test mode without renaming actual files (dry-run).
mkdir: boolRecursively creates all parent directories of ‘
overwrite: boolOverwrites output files, otherwise, a ‘_’ is prepended to filename.
extension: boolPreserves the extension of input files in ‘sort’ and ‘regex’ options.
directory: Option<PathBuf>Sets the working directory.
max_depth: Option<usize>Optional value to set the maximum of subdirectory depth value in ‘regex’ mode.
depth: Option<usize>Optional value to overwrite inferred subdirectory depth value in ‘regex’ mode.
generate: Option<PathBuf>Stores a JSON map file in ‘
print: boolPrints the map table to stdout.
map: Option<PathBuf>Sets the path of map file to be used for renaming files.
sort: Option<Order>Sets the order of natural sorting (by name) to rename files using enumerator.
regex: Option<String>Regex pattern (RE2 syntax) to match by filenames.
output: Vec<String>OUTPUT is the pattern to be used for renaming files, and SOURCE is the optional regex pattern to match by filenames. SOURCE has the same function as -r option.
Implementations§
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.