From 99977dfd7f488e65dfbe53baf9c08c018b65f3bf Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Wed, 26 Feb 2020 18:03:12 +0100 Subject: [PATCH] Add docs --- src/app.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app.rs b/src/app.rs index ce34f49..e062221 100644 --- a/src/app.rs +++ b/src/app.rs @@ -49,17 +49,22 @@ pub struct CliOpts { #[structopt(flatten)] pub boilerplate: BoilerplateOpts, + /// Subcommands #[structopt(subcommand)] cmd: Command, } +/// Subcommands #[derive(StructOpt, Debug)] pub enum Command { /// Add a line to the gitignore Add { + /// The glob string that should be added glob: String, }, + /// Download a gitignore for a language Get { + /// The language for which the gitignore should be downloaded lang: String, }, }