pub(crate) struct Options {Show 21 fields
pub(crate) dry_run: bool,
pub(crate) verbose: bool,
pub(crate) hidden: bool,
pub(crate) max_depth: i32,
pub(crate) size_filter: SizeFilter,
pub(crate) mtime_filter: TimeFilter,
pub(crate) perm_filter: String,
pub(crate) user_filter: String,
pub(crate) group_filter: String,
pub(crate) type_filter: char,
pub(crate) exclude_pattern: String,
pub(crate) stop_on_error: bool,
pub(crate) confirm: bool,
pub(crate) jobs: i32,
pub(crate) shell: String,
pub(crate) shell_name: String,
pub(crate) collect_all: bool,
pub(crate) glob: bool,
pub(crate) regex_match: bool,
pub(crate) glob_exclude: bool,
pub(crate) expr_str: String,
}Expand description
Aggregated runtime options parsed from CLI arguments.
This is a flattened, validated view of Cli that the rest of the program
operates on. Filters that weren’t specified on the command line have their
active flag set to false or their string fields left empty.
Fields§
§dry_run: boolPrint commands without executing them.
verbose: boolPrint each command to stdout before executing it.
Include hidden (dot-prefixed) files and directories.
max_depth: i32Maximum recursion depth (-1 = unlimited, 0 = current dir only).
size_filter: SizeFilterOptional size filter (e.g., +10M).
mtime_filter: TimeFilterOptional modification-time filter (e.g., +7).
perm_filter: StringOctal permission string for filtering (e.g., "755"). Empty = disabled.
user_filter: StringOwner username to filter by. Empty = disabled.
group_filter: StringGroup name to filter by. Empty = disabled.
type_filter: charType filter character: 'f' (file), 'd' (dir), 'l' (symlink), '\0' = disabled.
exclude_pattern: StringRegex pattern string for excluding entries. Empty = disabled.
stop_on_error: boolHalt processing on the first command that returns non-zero.
confirm: boolPrompt the user for y/N confirmation before each command.
jobs: i32Number of parallel child processes (1 = sequential, >1 = fork pool).
shell: StringShell path to use for command execution (default: /bin/bash).
shell_name: String§collect_all: boolIf true (via -l/--list-all), collect all matched file paths and run
one command with %0 expanded to the combined space-delimited list.
glob: boolIf true (via -b/--glob), treat patterns as globs instead of regex.
regex_match: boolIf true (via -z/--regex-match), the regex must match the entire
path (anchored with ^(?:...)$) rather than just a substring.
glob_exclude: boolIf true (via -i/--glob-exclude), treat the exclude pattern as a glob
instead of regex.
expr_str: StringExpression filter string from --expr.