Skip to content

Commit ed09525

Browse files
committed
feat(Automattic#393): add version and about snippet to clap args
1 parent 628c2ed commit ed09525

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: harper-cli/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ use harper_core::parsers::{Markdown, MarkdownOptions};
1111
use harper_core::{remove_overlaps, Dictionary, Document, FstDictionary, TokenKind};
1212
use harper_literate_haskell::LiterateHaskellParser;
1313

14+
/// A debugging tool for the Harper grammar checker.
1415
#[derive(Debug, Parser)]
16+
#[command(version, about)]
1517
enum Args {
1618
/// Lint a provided document.
1719
Lint {

Diff for: harper-ls/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ static DEFAULT_ADDRESS: &str = "127.0.0.1:4000";
2525
///
2626
/// Will listen on 127.0.0.1:4000 by default.
2727
#[derive(Debug, Parser)]
28+
#[command(version, about)]
2829
struct Args {
2930
/// Set to listen on standard input / output rather than TCP.
3031
#[arg(short, long, default_value_t = false)]

0 commit comments

Comments
 (0)