aboutsummaryrefslogtreecommitdiff
path: root/src/config/args.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2022-06-07 12:28:18 +0200
committerMaximilian Manz <maximilian.manz@de.clara.net>2022-06-20 11:33:04 +0200
commite9dc01ffb547d0fa605bfe38b34672ddd5161be4 (patch)
tree5ca50547512b7cc2256ef457d468c4252ae23a0b /src/config/args.rs
parentimplement cloning of new repos (diff)
reorganize file structure and cleanup lints
Diffstat (limited to 'src/config/args.rs')
-rw-r--r--src/config/args.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/config/args.rs b/src/config/args.rs
index 9c0973f..446c5ce 100644
--- a/src/config/args.rs
+++ b/src/config/args.rs
@@ -1,9 +1,7 @@
-use clap::{Parser, Subcommand, ArgEnum};
+use clap::{Parser, Subcommand};
#[derive(Parser, Clone, Debug)]
-#[clap(
- override_usage("gtree <SUBCOMMAND> [SCOPE]")
-)]
+#[clap(override_usage("gtree <SUBCOMMAND> [SCOPE]"))]
/// Sync Gitlab Trees
pub struct Args {
#[clap(subcommand)]
@@ -14,8 +12,7 @@ pub struct Args {
pub scope: Option<String>,
}
-#[derive(PartialEq, Clone, Debug)]
-#[derive(Subcommand)]
+#[derive(PartialEq, Clone, Debug, Subcommand)]
pub enum Commands {
/// Download new repositories and delete old ones, also update
Sync,