From 6aee5ebb760ca441850961dfe47a144959cc6677 Mon Sep 17 00:00:00 2001 From: Cain <75994858+cainthebest@users.noreply.github.com> Date: Sat, 13 Jan 2024 10:10:31 +0000 Subject: [PATCH] chore: format --- crates/cli/src/main.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index df7078a..acd68fa 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -13,10 +13,7 @@ mod error; use self::error::{Error, Result}; -// NOTE: For some reason without setting long_about here the doc comment for -// ExtraRequestSettings gets set as the about for the CLI. -#[derive(Debug, Parser)] -#[command(author, version, long_about = None, about = r" +const GAMEDIG_HEADER: &str = r" _____ _____ _ _____ _ _____ / ____| | __ \(_) / ____| | |_ _| @@ -30,7 +27,12 @@ use self::error::{Error, Result}; A command line interface for querying game servers. Copyright (C) 2022 - Present GameDig Organization & Contributors Licensed under the MIT license -")] +"; + +// NOTE: For some reason without setting long_about here the doc comment for +// ExtraRequestSettings gets set as the about for the CLI. +#[derive(Debug, Parser)] +#[command(author, version, about = GAMEDIG_HEADER, long_about = None)] struct Cli { #[command(subcommand)] action: Action,