From b79d71ad914fd8a2833b2b46daaf78c825feae3f 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 1c691ee..198754c 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::Clap; +use clap::{crate_license, Clap}; use std::{ffi::OsString, path::PathBuf, process::Command, str::FromStr}; use strum::EnumIter; use thiserror::Error as ThisError; #[derive(Clap, Debug)] -#[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. ///