mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-30 06:47:48 +00:00
Use colored/styled text output for diagnostics and usage info (#1775)
This commit is contained in:
13
man/rgbasm.1
13
man/rgbasm.1
@@ -10,6 +10,7 @@
|
||||
.Nm
|
||||
.Op Fl EhVvw
|
||||
.Op Fl b Ar chars
|
||||
.Op Fl \-color Ar when
|
||||
.Op Fl D Ar name Ns Op = Ns Ar value
|
||||
.Op Fl g Ar chars
|
||||
.Op Fl I Ar path
|
||||
@@ -65,6 +66,18 @@ letters,
|
||||
.Sq # ,
|
||||
or
|
||||
.Sq @ .
|
||||
.It Fl \-color Ar when
|
||||
Specify when to highlight warning and error messages with color:
|
||||
.Ql always ,
|
||||
.Ql never ,
|
||||
or
|
||||
.Ql auto .
|
||||
.Ql auto
|
||||
determines whether to use colors based on the
|
||||
.Ql Lk https://no-color.org/ NO_COLOR
|
||||
or
|
||||
.Ql Lk https://force-color.org/ FORCE_COLOR
|
||||
environment variables, or whether the output is to a TTY.
|
||||
.It Fl D Ar name Ns Oo = Ns Ar value Oc , Fl \-define Ar name Ns Oo = Ns Ar value Oc
|
||||
Add a string symbol to the compiled source code.
|
||||
This is equivalent to
|
||||
|
||||
21
man/rgbfix.1
21
man/rgbfix.1
@@ -10,6 +10,7 @@
|
||||
.Nm
|
||||
.Op Fl hjOsVvw
|
||||
.Op Fl C | c
|
||||
.Op Fl \-color Ar when
|
||||
.Op Fl f Ar fix_spec
|
||||
.Op Fl i Ar game_id
|
||||
.Op Fl k Ar licensee_str
|
||||
@@ -46,13 +47,13 @@ can be a path to a file, or
|
||||
to read from standard input.
|
||||
.Pp
|
||||
Note that options can be abbreviated as long as the abbreviation is unambiguous:
|
||||
.Fl \-color-o
|
||||
.Fl \-verb
|
||||
is
|
||||
.Fl \-color-only ,
|
||||
.Fl \-verbose ,
|
||||
but
|
||||
.Fl \-color
|
||||
.Fl \-ver
|
||||
is invalid because it could also be
|
||||
.Fl \-color-compatible .
|
||||
.Fl \-version .
|
||||
Options later in the command line override those set earlier.
|
||||
Accepted options are as follows:
|
||||
.Bl -tag -width Ds
|
||||
@@ -70,6 +71,18 @@ to 0x80.
|
||||
This overrides
|
||||
.Fl c
|
||||
if it was set prior.
|
||||
.It Fl \-color Ar when
|
||||
Specify when to highlight warning and error messages with color:
|
||||
.Ql always ,
|
||||
.Ql never ,
|
||||
or
|
||||
.Ql auto .
|
||||
.Ql auto
|
||||
determines whether to use colors based on the
|
||||
.Ql Lk https://no-color.org/ NO_COLOR
|
||||
or
|
||||
.Ql Lk https://force-color.org/ FORCE_COLOR
|
||||
environment variables, or whether the output is to a TTY.
|
||||
.It Fl f Ar fix_spec , Fl \-fix-spec Ar fix_spec
|
||||
Fix certain header values that the Game Boy checks for correctness.
|
||||
Alternatively, intentionally trash these values by writing their binary inverse instead.
|
||||
|
||||
13
man/rgbgfx.1
13
man/rgbgfx.1
@@ -15,6 +15,7 @@
|
||||
.Op Fl a Ar attrmap | Fl A
|
||||
.Op Fl b Ar base_ids
|
||||
.Op Fl c Ar pal_spec
|
||||
.Op Fl \-color Ar when
|
||||
.Op Fl d Ar depth
|
||||
.Op Fl i Ar input_tiles
|
||||
.Op Fl L Ar slice
|
||||
@@ -195,6 +196,18 @@ See
|
||||
.Sx PALETTE SPECIFICATION FORMATS
|
||||
for a list of formats and their descriptions.
|
||||
.El
|
||||
.It Fl \-color Ar when
|
||||
Specify when to highlight warning and error messages with color:
|
||||
.Ql always ,
|
||||
.Ql never ,
|
||||
or
|
||||
.Ql auto .
|
||||
.Ql auto
|
||||
determines whether to use colors based on the
|
||||
.Ql Lk https://no-color.org/ NO_COLOR
|
||||
or
|
||||
.Ql Lk https://force-color.org/ FORCE_COLOR
|
||||
environment variables, or whether the output is to a TTY.
|
||||
.It Fl d Ar depth , Fl \-depth Ar depth
|
||||
Set the bit depth of the output tile data, in bits per pixel (bpp), either 1 or 2 (the default).
|
||||
This changes how tile data is output, and the maximum number of colors per palette (2 and 4 respectively).
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl dhMtVvwx
|
||||
.Op Fl \-color Ar when
|
||||
.Op Fl l Ar linker_script
|
||||
.Op Fl m Ar map_file
|
||||
.Op Fl n Ar sym_file
|
||||
@@ -63,6 +64,18 @@ is invalid because it could also be
|
||||
.Fl \-version .
|
||||
The arguments are as follows:
|
||||
.Bl -tag -width Ds
|
||||
.It Fl \-color Ar when
|
||||
Specify when to highlight warning and error messages with color:
|
||||
.Ql always ,
|
||||
.Ql never ,
|
||||
or
|
||||
.Ql auto .
|
||||
.Ql auto
|
||||
determines whether to use colors based on the
|
||||
.Ql Lk https://no-color.org/ NO_COLOR
|
||||
or
|
||||
.Ql Lk https://force-color.org/ FORCE_COLOR
|
||||
environment variables, or whether the output is to a TTY.
|
||||
.It Fl d , Fl \-dmg
|
||||
Enable DMG mode.
|
||||
Prohibit the use of sections that doesn't exist on a DMG, such as VRAM bank 1.
|
||||
|
||||
Reference in New Issue
Block a user