Clone of official tools
Diff: detect_targets.py
- Revision:
- 22:9e85236d8716
- Parent:
- 13:ab47a20b66f0
- Child:
- 29:1210849dba19
diff -r 4fdf0dd04f6f -r 9e85236d8716 detect_targets.py --- a/detect_targets.py Fri Jul 15 22:58:15 2016 +0100 +++ b/detect_targets.py Sat Jul 16 00:34:03 2016 +0100 @@ -42,24 +42,24 @@ # Parse Options parser = get_default_options_parser() - parser.add_option("-S", "--supported-toolchains", + parser.add_argument("-S", "--supported-toolchains", action="store_true", dest="supported_toolchains", default=False, help="Displays supported matrix of targets and toolchains") - parser.add_option('-f', '--filter', + parser.add_argument('-f', '--filter', dest='general_filter_regex', default=None, help='Filter targets') - parser.add_option("-v", "--verbose", + parser.add_argument("-v", "--verbose", action="store_true", dest="verbose", default=False, help="Verbose diagnostic output") - (options, args) = parser.parse_args() + options = parser.parse_args() # Only prints matrix of supported toolchains if options.supported_toolchains: