Implement -X/--max-errors for RGBASM (#1262)

Co-authored-by: Eldred Habert <me@eldred.fr>
This commit is contained in:
Rangi
2023-12-07 05:42:47 -05:00
committed by GitHub
parent 1fa289f2ee
commit 34b2543c8b
9 changed files with 47 additions and 5 deletions

View File

@@ -24,6 +24,7 @@
.Op Fl Q Ar fix_precision
.Op Fl r Ar recursion_depth
.Op Fl W Ar warning
.Op Fl X Ar max_errors
.Ar asmfile
.Sh DESCRIPTION
The
@@ -176,6 +177,13 @@ See the
section for a list of warnings.
.It Fl w
Disable all warning output, even when turned into errors.
.It Fl X Ar max_errors , Fl \-max-errors Ar max_errors
If more than this number of errors (not warnings) occur, then abort the assembly process;
.Fl X 0
disables this behavior.
The default is 100 if
.Nm
is printing errors to a terminal, and 0 otherwise.
.El
.Sh DIAGNOSTICS
Warnings are diagnostic messages that indicate possibly erroneous behavior that does not necessarily compromise the assembling process.