Skip to content

Commit

Permalink
Merge pull request #394 from grantlemons/clap-version
Browse files Browse the repository at this point in the history
feat(#393): add clap version & about attributes
  • Loading branch information
elijah-potter authored Jan 16, 2025
2 parents 628c2ed + ed09525 commit 4300ddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions harper-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use harper_core::parsers::{Markdown, MarkdownOptions};
use harper_core::{remove_overlaps, Dictionary, Document, FstDictionary, TokenKind};
use harper_literate_haskell::LiterateHaskellParser;

/// A debugging tool for the Harper grammar checker.
#[derive(Debug, Parser)]
#[command(version, about)]
enum Args {
/// Lint a provided document.
Lint {
Expand Down
1 change: 1 addition & 0 deletions harper-ls/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ static DEFAULT_ADDRESS: &str = "127.0.0.1:4000";
///
/// Will listen on 127.0.0.1:4000 by default.
#[derive(Debug, Parser)]
#[command(version, about)]
struct Args {
/// Set to listen on standard input / output rather than TCP.
#[arg(short, long, default_value_t = false)]
Expand Down

0 comments on commit 4300ddc

Please sign in to comment.