From 9632349a85fd53bc5af272d3539d38030567412b Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 27 Nov 2024 11:48:05 +0000 Subject: build: add description to help and add `ngit init` to description / help content --- src/bin/ngit/cli.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/bin/ngit/cli.rs') diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index e537197..26116be 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs @@ -5,7 +5,11 @@ use ngit::login::SignerInfo; use crate::sub_commands; #[derive(Parser)] -#[command(author, version, about, long_about = None)] +#[command( + author, + version, + help_template = "{name} {version}\nnostr plugin for git\n - clone a nostr repository, or add as a remote, by using the url format nostr://pub123/identifier\n - remote branches begining with `pr/` are open PRs from contributors; `ngit list` can be used to view all PRs\n - to open a PR, push a branch with the prefix `pr/` or use `ngit send` for advanced options\n- publish a repository to nostr with `ngit init`\n\n{usage}\n{all-args}" +)] #[command(propagate_version = true)] pub struct Cli { #[command(subcommand)] -- cgit v1.2.3