equal
deleted
inserted
replaced
17 ## |
17 ## |
18 # @author Teemu Rytkonen |
18 # @author Teemu Rytkonen |
19 |
19 |
20 from optparse import OptionParser |
20 from optparse import OptionParser |
21 from cone.action import configroot2flat |
21 from cone.action import configroot2flat |
|
22 import cone_common |
22 |
23 |
23 def get_parser(): |
24 def get_parser(): |
24 parser = OptionParser() |
25 parser = OptionParser() |
|
26 parser.add_options(cone_common.COMMON_OPTIONS) |
25 parser.add_option("-c", "--configuration", |
27 parser.add_option("-c", "--configuration", |
26 dest="configs", |
28 dest="configs", |
27 action="append", |
29 action="append", |
28 help="Defines the name of the configuration for the action, can be "\ |
30 help="Defines the name of the configuration for the action, can be "\ |
29 "specified multiple times to include multiple configurations.", |
31 "specified multiple times to include multiple configurations.", |
57 """ |
59 """ |
58 Configuration root flattener. |
60 Configuration root flattener. |
59 """ |
61 """ |
60 parser = get_parser() |
62 parser = get_parser() |
61 options, _ = parser.parse_args() |
63 options, _ = parser.parse_args() |
|
64 cone_common.handle_common_options(options) |
62 |
65 |
63 action = configroot2flat.ConeConfigroot2FlatAction( |
66 action = configroot2flat.ConeConfigroot2FlatAction( |
64 project = options.project, |
67 project = options.project, |
65 configs = options.configs, |
68 configs = options.configs, |
66 config_wildcards = options.config_wildcards, |
69 config_wildcards = options.config_wildcards, |