diff options
| author | diogo464 <[email protected]> | 2021-10-30 21:09:56 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-30 21:09:56 +0100 |
| commit | 89daa500b322f98436abb09a80c1a4e0b3c96a2e (patch) | |
| tree | ee905efee3761f2cf3f8efdae52d159f25b2511d /dotup_cli/src/main.rs | |
| parent | 450ec8fbae076543d8ccc2d363613f0ae778a01d (diff) | |
| parent | 3b4b9aa6bc041f1e24761e94b1c052ad20f9ca66 (diff) | |
Merge pull request #11 from diogo464/dependabot/cargo/clap-3.0.0-beta.5
Bump clap from 3.0.0-beta.2 to 3.0.0-beta.5
Diffstat (limited to 'dotup_cli/src/main.rs')
| -rw-r--r-- | dotup_cli/src/main.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dotup_cli/src/main.rs b/dotup_cli/src/main.rs index d500a7d..5f02e68 100644 --- a/dotup_cli/src/main.rs +++ b/dotup_cli/src/main.rs | |||
| @@ -8,11 +8,11 @@ pub use config::Config; | |||
| 8 | 8 | ||
| 9 | pub mod prelude { | 9 | pub mod prelude { |
| 10 | pub use super::{utils, Config}; | 10 | pub use super::{utils, Config}; |
| 11 | pub use clap::{AppSettings, Clap}; | 11 | pub use clap::{AppSettings, Parser}; |
| 12 | pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID}; | 12 | pub use dotup::{Archive, Depot, DepotConfig, Link, LinkCreateParams, LinkID}; |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | use clap::{AppSettings, Clap}; | 15 | use clap::{AppSettings, Parser}; |
| 16 | use flexi_logger::Logger; | 16 | use flexi_logger::Logger; |
| 17 | use std::{ | 17 | use std::{ |
| 18 | collections::HashMap, | 18 | collections::HashMap, |
| @@ -22,8 +22,7 @@ use std::{ | |||
| 22 | 22 | ||
| 23 | use prelude::*; | 23 | use prelude::*; |
| 24 | 24 | ||
| 25 | #[derive(Clap)] | 25 | #[derive(Parser)] |
| 26 | #[clap(setting = AppSettings::ColoredHelp)] | ||
| 27 | struct Opts { | 26 | struct Opts { |
| 28 | /// Path to the depot file. | 27 | /// Path to the depot file. |
| 29 | /// | 28 | /// |
| @@ -50,7 +49,7 @@ struct Opts { | |||
| 50 | subcmd: SubCommand, | 49 | subcmd: SubCommand, |
| 51 | } | 50 | } |
| 52 | 51 | ||
| 53 | #[derive(Clap)] | 52 | #[derive(Parser)] |
| 54 | enum SubCommand { | 53 | enum SubCommand { |
| 55 | Init(commands::init::Opts), | 54 | Init(commands::init::Opts), |
| 56 | Link(commands::link::Opts), | 55 | Link(commands::link::Opts), |
