|
22 | 22 | from tools.targets import TARGET_NAMES
|
23 | 23 | from tools.utils import argparse_force_uppercase_type, \
|
24 | 24 | argparse_lowercase_hyphen_type, argparse_many, \
|
25 |
| - argparse_filestring_type, args_error, argparse_profile_filestring_type |
| 25 | + argparse_filestring_type, args_error, argparse_profile_filestring_type,\ |
| 26 | + argparse_deprecate |
| 27 | + |
| 28 | +FLAGS_DEPRECATION_MESSAGE = "Please use the --profile argument instead.\n"\ |
| 29 | + "Documentation may be found in "\ |
| 30 | + "docs/Toolchain_Profiles.md" |
26 | 31 |
|
27 | 32 | def get_default_options_parser(add_clean=True, add_options=True,
|
28 | 33 | add_app_config=False):
|
@@ -59,14 +64,17 @@ def get_default_options_parser(add_clean=True, add_options=True,
|
59 | 64 | help="print Warnings, and Errors in color",
|
60 | 65 | action="store_true", default=False)
|
61 | 66 |
|
62 |
| - parser.add_argument("--cflags", default=[], action="append", |
63 |
| - help="Extra flags to provide to the C compiler") |
| 67 | + parser.add_argument("--cflags", |
| 68 | + type=argparse_deprecate(FLAGS_DEPRECATION_MESSAGE), |
| 69 | + help="Deprecated. " + FLAGS_DEPRECATION_MESSAGE) |
64 | 70 |
|
65 |
| - parser.add_argument("--asmflags", default=[], action="append", |
66 |
| - help="Extra flags to provide to the assembler") |
| 71 | + parser.add_argument("--asmflags", |
| 72 | + type=argparse_deprecate(FLAGS_DEPRECATION_MESSAGE), |
| 73 | + help="Deprecated. " + FLAGS_DEPRECATION_MESSAGE) |
67 | 74 |
|
68 |
| - parser.add_argument("--ldflags", default=[], action="append", |
69 |
| - help="Extra flags to provide to the linker") |
| 75 | + parser.add_argument("--ldflags", |
| 76 | + type=argparse_deprecate(FLAGS_DEPRECATION_MESSAGE), |
| 77 | + help="Deprecated. " + FLAGS_DEPRECATION_MESSAGE) |
70 | 78 |
|
71 | 79 | if add_clean:
|
72 | 80 | parser.add_argument("-c", "--clean", action="store_true", default=False,
|
|
0 commit comments