added cli interface options and some error msgs

This commit is contained in:
2024-02-22 01:49:57 -05:00
parent 695e31c7e4
commit 05fb399530
2 changed files with 39 additions and 18 deletions

13
src/cli/mod.rs Normal file
View File

@@ -0,0 +1,13 @@
use clap::{Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(version, about)]
pub struct Args {
/// set config file to use
#[arg(short, long, value_name = "FILE")]
pub config: Option<String>,
/// show current config file
#[arg(short = 'C', long)]
pub current_config: bool,
}