diff options
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), |
