pub struct CliArgs {Show 13 fields
pub base_pdf: Option<PathBuf>,
pub tailored_pdf: Option<PathBuf>,
pub output: Option<PathBuf>,
pub force: bool,
pub open: bool,
pub theme: ThemeKind,
pub granularity: DiffGranularity,
pub gutter_width: f32,
pub no_header: bool,
pub max_pages: usize,
pub verbose: bool,
pub generate_completions: Option<Shell>,
pub generate_man: bool,
}Expand description
CLI arguments for pdf-vdiff.
Fields§
§base_pdf: Option<PathBuf>Path to the original / base PDF document
tailored_pdf: Option<PathBuf>Path to the modified / tailored PDF document
output: Option<PathBuf>Target output PDF file path [default: <base_stem>vs<tailored_stem>_diff.pdf]
force: boolOverwrite destination output file if it already exists
open: boolAutomatically open the generated diff in the system default PDF viewer
theme: ThemeKindColor palette theme (intellij, github, classic, high-contrast)
granularity: DiffGranularityDiff granularity mode (word, line, character)
gutter_width: f32Spacing in points between left and right pages
no_header: boolSuppress the top header/metadata banner
max_pages: usizeMaximum page count threshold to prevent unbounded processing
verbose: boolEnable verbose structural logging (omits sensitive raw text PII)
generate_completions: Option<Shell>Generate shell completion script to stdout (bash, zsh, fish, elvish, powershell)
generate_man: boolGenerate roff man page (Section 1) to stdout
Implementations§
Source§impl CliArgs
impl CliArgs
Sourcepub fn resolve_output_path(&self) -> PathBuf
pub fn resolve_output_path(&self) -> PathBuf
Resolves the effective output path, defaulting to <base_stem>_vs_<tailored_stem>_diff.pdf.
Sourcepub fn effective_header_height(&self) -> f32
pub fn effective_header_height(&self) -> f32
Header height in points taking --no-header flag into account.
Trait Implementations§
Source§impl Args for CliArgs
impl Args for CliArgs
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 CliArgs
impl CommandFactory for CliArgs
Source§impl FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
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.Source§impl Parser for CliArgs
impl Parser for CliArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnsafeUnpin for CliArgs
impl UnwindSafe for CliArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more