1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-22 02:55:39 +03:00

Fix diagnostics exit code help text

Issue #129
Alternative PR to #135
This commit is contained in:
Manu [tennox] 2024-05-07 19:39:03 +01:00 committed by oxalica
parent 8f4a7bda7f
commit 0e59e0b87a

View File

@ -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 `-`,