Skip to content

Commit

Permalink
docs: add documentation to cli (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking authored Oct 30, 2024
1 parent 63ed288 commit 966fda4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions crates/cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ pub(crate) enum Commands {

#[derive(Debug, Parser)]
pub(crate) struct LintArgs {
/// Files or directories to fix.
pub paths: Vec<PathBuf>,
#[arg(default_value = "human", short, long)]
pub format: Format,
}

#[derive(Debug, Parser)]
pub(crate) struct FixArgs {
/// Files or directories to fix.
pub paths: Vec<PathBuf>,
/// Skip the confirmation prompt and go straight to applying fixes.
#[arg(long)]
Expand Down
4 changes: 2 additions & 2 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lint files

###### **Arguments:**

* `<PATHS>`
* `<PATHS>` — Files or directories to fix

###### **Options:**

Expand All @@ -56,7 +56,7 @@ fix files

###### **Arguments:**

* `<PATHS>`
* `<PATHS>` — Files or directories to fix

###### **Options:**

Expand Down

0 comments on commit 966fda4

Please sign in to comment.