From d52361cb2d70724cc6459a6d1adad0cb5c5115a4 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sun, 19 May 2024 05:29:59 +0300 Subject: [PATCH] chore: Add copyright and issue tracker to the help --- src/cli/mod.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 0eee915..251f47b 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -77,8 +77,20 @@ pub enum Commands { impl_commands!(Commands, Add Remove List Clean Edit Gen Get Export Import ChangeMasterPassword Completion); +/// Header message, used in the help message +const HEADER: &str = r#"Copyright (C) 2024 Awiteb +License GNU GPL-3.0-or-later +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +Git repository: https://git.4rs.nl/awiteb/lprs +Documentation: https://lprs.4rs.nl"#; + +/// Footer message, used in the help message +const FOOTER: &str = r#"Please report bugs to ."#; + #[derive(Parser, Debug)] -#[command(author, version, about, long_about = None)] +#[command(about, version, before_long_help = HEADER, after_help = FOOTER)] /// A local CLI vaults manager. For human and machine use pub struct Cli { /// The vaults json file