diff options
| author | diogo464 <[email protected]> | 2021-07-09 05:23:11 -0400 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2021-07-09 05:23:11 -0400 |
| commit | 094f84d2c320bc7320674ba23c715f9fbe634862 (patch) | |
| tree | bf33ad3298d38639653267a87f235ee79847ae53 /dotup_cli/src/commands/init.rs | |
| parent | 56c87da0183590a39a938a171c5cb80a3e702edd (diff) | |
Changed documentation/help text of subcommands.
Change the documentation/help text of subcommmands and added colored
output to the help text.
Diffstat (limited to 'dotup_cli/src/commands/init.rs')
| -rw-r--r-- | dotup_cli/src/commands/init.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dotup_cli/src/commands/init.rs b/dotup_cli/src/commands/init.rs index bfec6ca..8765dbf 100644 --- a/dotup_cli/src/commands/init.rs +++ b/dotup_cli/src/commands/init.rs | |||
| @@ -1,8 +1,11 @@ | |||
| 1 | use clap::Clap; | ||
| 2 | |||
| 3 | use super::prelude::*; | 1 | use super::prelude::*; |
| 4 | 2 | ||
| 3 | /// Creates an empty depot file if one doesnt already exist. | ||
| 4 | /// | ||
| 5 | /// By default this will create the file in the current directory | ||
| 6 | /// but the --depot flag can be used to change this path. | ||
| 5 | #[derive(Clap)] | 7 | #[derive(Clap)] |
| 8 | #[clap(setting = AppSettings::ColoredHelp)] | ||
| 6 | pub struct Opts {} | 9 | pub struct Opts {} |
| 7 | 10 | ||
| 8 | pub fn main(config: Config, opts: Opts) -> anyhow::Result<()> { | 11 | pub fn main(config: Config, opts: Opts) -> anyhow::Result<()> { |
