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:
parent
6779ccc642
commit
abddcd98d5
2 changed files with 11 additions and 10 deletions
11
src/cli.rs
11
src/cli.rs
|
@ -24,13 +24,14 @@ use clap::{ArgAction, CommandFactory, Parser, Subcommand};
|
|||
const CONFIG_FILE: &str = "/.config/gg/config.yaml";
|
||||
|
||||
const HELP_TEMPLATE: &str = "\
|
||||
{before-help}{name} {version}
|
||||
{author-with-newline}{about-with-newline}
|
||||
{usage-heading} {usage}
|
||||
{before-help}{name} {version}
|
||||
{about-with-newline}
|
||||
|
||||
{all-args}{after-help}
|
||||
{usage-heading} {usage}
|
||||
|
||||
";
|
||||
{all-args}{after-help}
|
||||
|
||||
";
|
||||
|
||||
//#[clap(author, version, about, long_about = None)]
|
||||
#[derive(Parser, Debug)]
|
||||
|
|
|
@ -22,11 +22,11 @@
|
|||
/// Contains the notice for interactive programs from the GPLv3's "How to Apply
|
||||
/// These Terms to Your New Programs"
|
||||
pub const INTERACTIVE_NOTICE: &str = "\
|
||||
gg Copyright (C) 2023 Christina Sørensen <christina@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
|
||||
under certain conditions; type `gg --license' for details.
|
||||
";
|
||||
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 under
|
||||
certain conditions; type `gg --license' for details. ";
|
||||
|
||||
/// Contains the license part of the long notice for interactive programs from
|
||||
/// the GPLv3's "How to Apply These Terms to Your New Programs"
|
||||
|
|
Loading…
Reference in a new issue