aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/commands/init.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2021-07-09 05:23:11 -0400
committerdiogo464 <[email protected]>2021-07-09 05:23:11 -0400
commit094f84d2c320bc7320674ba23c715f9fbe634862 (patch)
treebf33ad3298d38639653267a87f235ee79847ae53 /dotup_cli/src/commands/init.rs
parent56c87da0183590a39a938a171c5cb80a3e702edd (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.rs7
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 @@
1use clap::Clap;
2
3use super::prelude::*; 1use 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)]
6pub struct Opts {} 9pub struct Opts {}
7 10
8pub fn main(config: Config, opts: Opts) -> anyhow::Result<()> { 11pub fn main(config: Config, opts: Opts) -> anyhow::Result<()> {