From f72eac2636e277ee186075e8c06bcf50d275f9cc Mon Sep 17 00:00:00 2001 From: Szpachlarz Date: Sat, 13 Jul 2024 15:09:45 +0200 Subject: [PATCH] Add: --help and --version commands --- src/bin/topola-cli/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/topola-cli/main.rs b/src/bin/topola-cli/main.rs index 1df7cc5..00bec32 100644 --- a/src/bin/topola-cli/main.rs +++ b/src/bin/topola-cli/main.rs @@ -3,7 +3,8 @@ use std::fs::File; use std::io::prelude::*; use std::io::BufReader; -#[derive(Parser)] +#[derive(Parser, Debug, Default)] +#[command(about, version)] struct Cli { input: std::path::PathBuf, output: std::path::PathBuf,