aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/main.rs
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2025-11-06 11:11:38 +0800
committerGitHub <noreply@github.com>2025-11-06 11:11:38 +0800
commit3d4081897e267c7fae5f11a7dd55826574e6941b (patch)
tree72c84770cf2313f1632600c2d2e63f9c576cc07b /src/main.rs
downloadmvp-3d4081897e267c7fae5f11a7dd55826574e6941b.tar.gz
mvp-3d4081897e267c7fae5f11a7dd55826574e6941b.zip
Initial commit
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..c3c3fd4
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,13 @@
+use clap::Parser;
+
+#[derive(Parser, Debug)]
+#[command(name = "mt")]
+struct Args {
+ #[arg(short, long)]
+ name: String,
+}
+
+fn main() {
+ let args = Args::parse();
+ println!("Hello from CLI, {}!", args.name);
+} \ No newline at end of file