From 8a1819f0cc72b7ac191a360cb432e73af0796199 Mon Sep 17 00:00:00 2001 From: 22388o <22388o@users.noreply.github.com> Date: Mon, 16 Dec 2024 06:39:06 -0300 Subject: [PATCH] Initial CLI --- rust/cli.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rust/cli.rs b/rust/cli.rs index e69de29..675845d 100644 --- a/rust/cli.rs +++ b/rust/cli.rs @@ -0,0 +1,11 @@ +use clap::Parser; +use std::path::PathBuf; + +#[derive(Parser)] +#[clap(author, version, about, long_about = None)] +pub struct Cli { + /// Path to the file to read + #[clap(parse(from_os_str))] + pub + path: PathBuf, +} \ No newline at end of file