pub struct Cli {Show 15 fields
pub tags: Vec<String>,
pub imageboard: ImageBoardArg,
pub output: Option<PathBuf>,
pub simultaneous_downloads: u8,
pub auth: bool,
pub safe_mode: bool,
pub save_file_as_id: bool,
pub limit: Option<u16>,
pub disable_blacklist: bool,
pub cbz: bool,
pub start_page: Option<u16>,
pub update: bool,
pub rating: Vec<RatingArg>,
pub ignore_unknown: bool,
pub annotate: bool,
}
Fields
Tags to search
imageboard: ImageBoardArg
Specify which website to download from
output: Option<PathBuf>
Where to save downloaded files
simultaneous_downloads: u8
Number of simultaneous downloads
[max: 20]
auth: bool
Authenticate to the imageboard website.
This flag only needs to be set a single time.
Once authenticated, it’s possible to use your blacklist to exclude posts with unwanted tags
safe_mode: bool
Download images from the safe version of the selected Imageboard.
Useful if you only want to download posts with “safe” rating.
save_file_as_id: bool
Save files with their ID as filename instead of it’s MD5
If the output dir has the same file downloaded with the MD5 name, it will be renamed to the post’s ID
limit: Option<u16>
Set a max number of posts to download.
[max: 65535]
disable_blacklist: bool
Disable blacklist filtering
cbz: bool
Save posts inside a cbz file.
Will always overwrite the destination file.
start_page: Option<u16>
Select from which page to start scanning posts
[max: 65535]
update: bool
Download only the latest images for tag selection.
Will not re-download already present or deleted images from destination directory
rating: Vec<RatingArg>
Download posts with the selected rating. Can be used multiple times to download posts with other ratings
ignore_unknown: bool
Do not download posts with an unknown rating
annotate: bool
Write tags in a txt file next to the downloaded image (for Stable Diffusion training)
Trait Implementations
sourceimpl CommandFactory for Cli
impl CommandFactory for Cli
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl FromArgMatches for Cli
impl FromArgMatches for Cli
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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
.sourcefn 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
.