index : nmrs-tui
A fast, Vim-friendly NetworkManager TUI built in Rust.
about summary refs log tree commit diff

Diffstat (limited to 'src/cli.rs')

-rw-r--r-- src/cli.rs 19
 1 file changed, 19 insertions(+)

diff --git a/src/cli.rs b/src/cli.rs
new file mode 100644
index 0000000..0116d8a 100644
--- /dev/null
+++ b/src/cli.rs
@@ -1,0 +1,19 @@
use clap::{ArgAction, Parser};

#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct Args {
    #[arg(long, action = ArgAction::SetTrue)]
    /// generate config file.
    pub config: bool,
}

pub struct Cli {
    pub args: Args
}

impl Cli {
    pub fn new() -> Self {
        Self { args: Args::parse() }
    }
}