Skip to content

Commit

Permalink
Rename cli.rs to args.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgalopes committed Nov 8, 2023
1 parent dd2f2d8 commit dc9798c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/svg2pdf-cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use clap::{CommandFactory, ValueEnum};
use clap_complete::{generate_to, Shell};

mod args {
include!("src/cli.rs");
include!("src/args.rs");
}

fn main() -> Result<(), std::io::Error> {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions crates/svg2pdf-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use usvg::{TreeParsing, TreeTextToPath};

use svg2pdf::Options;

mod cli;
mod args;

fn main() {
if let Err(msg) = run() {
Expand All @@ -18,7 +18,7 @@ fn main() {
}

fn run() -> Result<(), String> {
let args = cli::Args::parse();
let args = args::Args::parse();

let name =
Path::new(args.input.file_name().ok_or("Input path does not point to a file")?);
Expand Down

0 comments on commit dc9798c

Please sign in to comment.