summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-01-11 19:29:23 +0300
committerValentin Popov <valentin@popov.link>2024-01-11 19:29:23 +0300
commit5c89b37d49ee3eed6f520dd26e0409b65af6993d (patch)
tree760e07c4150e933aa0983c08f0bc14647c3162e9 /src
parent1a62f521d5a5677bc6f31757be7cff5e9fde1487 (diff)
downloadgitlab-duplicator-5c89b37d49ee3eed6f520dd26e0409b65af6993d.tar.xz
gitlab-duplicator-5c89b37d49ee3eed6f520dd26e0409b65af6993d.zip
Initial CLI interface
Diffstat (limited to 'src')
-rw-r--r--src/main.rs18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..8c82ed1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,19 @@
+use clap::Parser;
+
+/// Create a mirror of a repository
+#[derive(Parser, Debug)]
+#[command(author, version, about, long_about = None)]
+struct Args {
+ /// The path to save the repository to
+ #[arg(short, long)]
+ path: String,
+
+ /// The URL of the repository to clone
+ #[arg(short, long)]
+ url: String,
+}
+
fn main() {
- println!("Hello, world!");
+ let args = Args::parse();
+ println!("{:?}", args);
}