mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-04 13:03:19 -05:00
`flag(args, "--name")` matched any token, so a value-taking option's operand was taken for an option. With a password of `--out`, `extract --password --out in.pdf --pages 1 --out out.pdf` read `in.pdf` as the output and wrote over the source file. Add `value_of_flag`, which walks the arguments by the command's option spec as `validate_options` and `positional` do, and move `info`, `text`, `combine`, `extract`, `split` and `render` to it. An option left without an operand at the end of the line is now reported instead of being read as absent, and a repeated option's last value is the one used. Fixes #7516
29 lines
450 B
Rust
29 lines
450 B
Rust
//! The crate's integration tests, linked into one test binary.
|
|
|
|
mod audit;
|
|
mod automation_roots;
|
|
mod batch;
|
|
mod batch_exit;
|
|
mod check;
|
|
mod cpu_override;
|
|
mod edit;
|
|
mod extract;
|
|
mod help;
|
|
mod info_repairs;
|
|
mod info_standards;
|
|
mod mcp_compact;
|
|
mod option_operands;
|
|
mod options;
|
|
mod owner_password;
|
|
mod render;
|
|
mod root_arguments;
|
|
mod run_report;
|
|
mod run_root;
|
|
mod split;
|
|
mod stderr;
|
|
mod stdout;
|
|
mod text;
|
|
mod ui_control;
|
|
mod version_resource;
|
|
mod xfa;
|