Skip to content

Commit

Permalink
Fix diagnostics exit code help text
Browse files Browse the repository at this point in the history
Issue #129
Alternative PR to #135
  • Loading branch information
tennox authored and oxalica committed May 30, 2024
1 parent 8f4a7bd commit 0e59e0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/nil/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ enum Subcommand {
#[derive(Debug, FromArgs)]
#[argh(subcommand, name = "diagnostics")]
/// Check and print diagnostics for a file.
/// Exit with non-zero code if there are any diagnostics. (`1` for errors, `2` if only warnings)
/// WARNING: The output format is for human and should not be relied on.
/// Output will be empty if there are no errors/warnigns.
/// Exit with non-zero code if there are any errors. (`0` for only warnings)
/// WARNING: The output format is for humans and should not be relied on.
struct DiagnosticsArgs {
/// nix file to check, or read from stdin for `-`.
/// NB. You need `--` before `-` for paths starting with `-`,
Expand Down

0 comments on commit 0e59e0b

Please sign in to comment.