@@ -89,6 +89,10 @@ def update_path_to_about(input_list):
89892 - Print error and warning messages
9090"""
9191
92+ TEMPLATE_LOCATION_HELP = """\
93+ Use the custom template for the Attribution Generation
94+ """
95+
9296MAPPING_HELP = """\
9397 Configure the mapping key from the MAPPING.CONFIG
9498"""
@@ -97,7 +101,8 @@ def main(parser, options, args):
97101 overwrite = options .overwrite
98102 verbosity = options .verbosity
99103 mapping_config = options .mapping
100-
104+ template_location = options .template_location
105+
101106 if options .version :
102107 print ('ABOUT tool {0}\n {1}' .format (__version__ , __copyright__ ))
103108 sys .exit (0 )
@@ -169,7 +174,7 @@ def main(parser, options, args):
169174 sublist = component_subset_to_sublist (input_list )
170175 outlist = update_path_to_about (sublist )
171176
172- attrib_str = collector .generate_attribution ( limit_to = outlist )
177+ attrib_str = collector .generate_attribution (template_path = template_location , limit_to = outlist )
173178 with open (output_path , "w" ) as f :
174179 f .write (attrib_str )
175180 errors = collector .get_genattrib_errors ()
@@ -233,6 +238,7 @@ def format_option(self, option):
233238 parser .add_option ('--overwrite' , action = 'store_true' ,
234239 help = 'Overwrites the output file if it exists' )
235240 parser .add_option ('--verbosity' , type = int , help = VERBOSITY_HELP )
241+ parser .add_option ('--template_location' , type = 'string' , help = TEMPLATE_LOCATION_HELP )
236242 parser .add_option ('--mapping' , action = 'store_true' , help = MAPPING_HELP )
237243 return parser
238244
0 commit comments