Skip to content

Commit 9d35350

Browse files
committed
Render author in help output
1 parent 38f41a7 commit 9d35350

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ use oqueue::{Color::Red, Sequencer};
1414
use std::io::{self, Write};
1515
use std::process;
1616

17+
const HELP: &str = "\
18+
{about}
19+
{author}
20+
21+
{usage-heading} {usage}
22+
23+
{all-args}\
24+
";
25+
1726
#[derive(ClapParser, Debug)]
18-
#[command(about = "Rust Quiz", version, author)]
27+
#[command(about = "Rust Quiz", version, author, help_template = HELP)]
1928
struct Opt {
2029
#[clap(subcommand)]
2130
serve: Option<Subcommand>,

0 commit comments

Comments
 (0)