From 1908b00c1c9500419f8f8caeaed679484536f7ae Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Sat, 23 Oct 2021 12:52:00 -0400 Subject: [PATCH] WIP: doc: show license in CLI help Resolves #26. --- src/bin/cpsc/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/cpsc/cli.rs b/src/bin/cpsc/cli.rs index 151afdd..be90b0e 100644 --- a/src/bin/cpsc/cli.rs +++ b/src/bin/cpsc/cli.rs @@ -12,13 +12,13 @@ // You should have received a copy of the GNU General Public License along with Capisco. If not, // see . use crate::runner::{git::RepoSource, RepoName}; -use clap::Parser; +use clap::{crate_license, Parser}; use std::{ffi::OsString, path::PathBuf, process::Command, str::FromStr}; use strum::EnumIter; use thiserror::Error as ThisError; #[derive(Debug, Parser)] -#[clap(about, author, version)] +#[clap(about, author, license = crate_license!(), version)] pub(crate) enum Cli { /// Use a starter file to quickly import or export a configuration. ///