Skip to content

Commit f4254c4

Browse files
committed
Add colorization option to default options parser
should be picked up by most cli's
1 parent 967b45a commit f4254c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/options.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def get_default_options_parser(add_clean=True, add_options=True):
3737
metavar="TOOLCHAIN",
3838
type=argparse_many(argparse_force_uppercase_type(toolchainlist, "toolchain")))
3939

40+
parser.add_argument("--color",
41+
help="print Warnings, and Errors in color",
42+
action="store_true", default=False)
43+
4044
if add_clean:
4145
parser.add_argument("-c", "--clean", action="store_true", default=False,
4246
help="clean the build directory")

0 commit comments

Comments
 (0)