|
34 | 34 | if __name__ == '__main__':
|
35 | 35 | # Parse Options
|
36 | 36 | parser = get_default_options_parser(add_clean=False, add_options=False)
|
37 |
| - parser.add_argument("--source", dest="source_dir", type=argparse_filestring_type, required=True, |
38 |
| - default=[], help="The source (input) directory", action="append") |
39 |
| - parser.add_argument("--prefix", dest="prefix", action="append", |
40 |
| - default=[], help="Restrict listing to parameters that have this prefix") |
41 |
| - parser.add_argument("-v", "--verbose", action="store_true", dest="verbose", |
42 |
| - default=False, help="Verbose diagnostic output") |
| 37 | + parser.add_argument( |
| 38 | + "--source", dest="source_dir", type=argparse_filestring_type, |
| 39 | + required=True, default=[], help="The source (input) directory", |
| 40 | + action="append") |
| 41 | + parser.add_argument( |
| 42 | + "--prefix", dest="prefix", action="append", default=[], |
| 43 | + help="Restrict listing to parameters that have this prefix") |
| 44 | + parser.add_argument( |
| 45 | + "-v", "--verbose", action="store_true", dest="verbose", default=False, |
| 46 | + help="Verbose diagnostic output") |
43 | 47 |
|
44 | 48 | options = parser.parse_args()
|
45 | 49 |
|
|
56 | 60 | options.prefix = options.prefix or [""]
|
57 | 61 |
|
58 | 62 | try:
|
59 |
| - params, macros, features = get_config(options.source_dir, target, toolchain) |
| 63 | + params, macros, features = get_config( |
| 64 | + options.source_dir, target, toolchain) |
60 | 65 | if not params and not macros:
|
61 | 66 | print("No configuration data available.")
|
62 | 67 | sys.exit(0)
|
|
0 commit comments