aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/args.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/config/args.rs b/src/config/args.rs
index 1b0683d..9c0973f 100644
--- a/src/config/args.rs
+++ b/src/config/args.rs
@@ -1,18 +1,21 @@
-use structopt::StructOpt;
+use clap::{Parser, Subcommand, ArgEnum};
-#[derive(StructOpt, Clone, Debug)]
+#[derive(Parser, Clone, Debug)]
+#[clap(
+ override_usage("gtree <SUBCOMMAND> [SCOPE]")
+)]
/// Sync Gitlab Trees
pub struct Args {
- #[structopt(subcommand)]
+ #[clap(subcommand)]
pub command: Commands,
/// Only operate on this subtree
+ #[clap(global = true)]
pub scope: Option<String>,
}
#[derive(PartialEq, Clone, Debug)]
-#[derive(StructOpt)]
-#[structopt(about = "the stupid content tracker")]
+#[derive(Subcommand)]
pub enum Commands {
/// Download new repositories and delete old ones, also update
Sync,