fix: fixed help formatting

The formatting was kinda broken because I was using multi line strings
like I was writing nix :S

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-07-03 13:28:11 +02:00
parent 9b4283b9ec
commit 7dc68e9a3f
Signed by: cafkafk
GPG key ID: CDDC792F655251ED
2 changed files with 11 additions and 10 deletions

View file

@ -24,13 +24,14 @@ use clap::{ArgAction, CommandFactory, Parser, Subcommand};
const CONFIG_FILE: &str = "/.config/gg/config.yaml"; const CONFIG_FILE: &str = "/.config/gg/config.yaml";
const HELP_TEMPLATE: &str = "\ const HELP_TEMPLATE: &str = "\
{before-help}{name} {version} {before-help}{name} {version}
{author-with-newline}{about-with-newline} {about-with-newline}
{usage-heading} {usage}
{all-args}{after-help} {usage-heading} {usage}
"; {all-args}{after-help}
";
//#[clap(author, version, about, long_about = None)] //#[clap(author, version, about, long_about = None)]
#[derive(Parser, Debug)] #[derive(Parser, Debug)]

View file

@ -22,11 +22,11 @@
/// Contains the notice for interactive programs from the GPLv3's "How to Apply /// Contains the notice for interactive programs from the GPLv3's "How to Apply
/// These Terms to Your New Programs" /// These Terms to Your New Programs"
pub const INTERACTIVE_NOTICE: &str = "\ pub const INTERACTIVE_NOTICE: &str = "\
gg Copyright (C) 2023 Christina Sørensen <christina@cafkafk.com> gg Copyright (C) 2023 Christina Sørensen <cafkafk.com>
This program comes with ABSOLUTELY NO WARRANTY; for details type `gg --warranty'.
This is free software, and you are welcome to redistribute it This program comes with ABSOLUTELY NO WARRANTY; for details type `gg
under certain conditions; type `gg --license' for details. --warranty'. This is free software, and you are welcome to redistribute it under
"; certain conditions; type `gg --license' for details. ";
/// Contains the license part of the long notice for interactive programs from /// Contains the license part of the long notice for interactive programs from
/// the GPLv3's "How to Apply These Terms to Your New Programs" /// the GPLv3's "How to Apply These Terms to Your New Programs"