pub struct CompareArgs {Show 18 fields
pub original_pos: Option<PathBuf>,
pub modified_pos: Option<PathBuf>,
pub original: Option<PathBuf>,
pub modified: Option<PathBuf>,
pub output: Option<PathBuf>,
pub author: String,
pub datetime: Option<String>,
pub force: bool,
pub detail_threshold: Option<f64>,
pub mode: CompareMode,
pub powertools_faithful: bool,
pub no_paragraph_merge: bool,
pub reference_doc: Option<PathBuf>,
pub critic: bool,
pub resource_path: Option<PathBuf>,
pub render: RenderArgs,
pub read: ReadArgs,
pub view_given: bool,
}Expand description
Inputs and settings shared by explicit and shorthand comparisons.
Fields§
§original_pos: Option<PathBuf>The original / base document (.docx or Markdown).
modified_pos: Option<PathBuf>The modified document (.docx or Markdown).
original: Option<PathBuf>Original/base document (overrides the positional ORIGINAL).
modified: Option<PathBuf>Modified document (overrides the positional MODIFIED).
output: Option<PathBuf>Write the redline to FILE instead of printing its agent view; the extension picks the format: .docx (also any other), .md (the agent view; CriticMarkup when both documents are Markdown), .pdf, .png (one file per page) or .json (the snapshot).
Author name recorded on the revisions.
datetime: Option<String>Revision timestamp (ISO 8601) [default: now, UTC]; pin it for reproducible output.
force: boolOverwrite the output file if it already exists.
detail_threshold: Option<f64>Word-match detail, from 0 to 1 [default: 0.02; powertools: 0.15].
mode: CompareModeCompare like Microsoft Word or Open-Xml-PowerTools.
powertools_faithful: boolSame as –mode powertools.
no_paragraph_merge: boolDEBUG: zero WmlComparerSettings::merge_replaced_paragraphs — the word-visual UMBRELLA gate — which disables the WHOLE word-visual pass family (merge, flatten, reorder, margins, …), not just the paragraph merge (pagination experiments; hidden). Redundant with –powertools-faithful, which sets the same preset.
reference_doc: Option<PathBuf>Two Markdown documents written as Word take styles, page setup, headers and footers from this .docx.
critic: boolRead CriticMarkup in the Markdown documents as tracked changes. By default a document compared is text.
resource_path: Option<PathBuf>Where images named by the Markdown are found (default: the original’s directory when it is Markdown, else the modified’s). Only images that resolve inside that directory are read, symlinks resolved; a URL or a path out of it is written as its alt text, with a warning that says why.
render: RenderArgsHow a .pdf or .png output is drawn.
read: ReadArgsThe options of the agent view printed without -o (or written to
FILE.md); jubarte FILE’s too.
view_given: boolWhether the command line spells out any of read’s options (set
after parsing): a .md of two Markdown documents is CriticMarkup,
which they cannot shape.
Trait Implementations§
Source§impl Args for CompareArgs
impl Args for CompareArgs
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 Debug for CompareArgs
impl Debug for CompareArgs
Source§impl FromArgMatches for CompareArgs
impl FromArgMatches for CompareArgs
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.