Index: synopsis-trunk/scripts/synopsis =================================================================== --- synopsis-trunk/scripts/synopsis (revision 1816) +++ synopsis-trunk/scripts/synopsis (working copy) @@ -76,7 +76,8 @@ def make_processor(argv): 'c': Comments.CFilter, 'qt': Comments.QtFilter, 'java': Comments.JavaFilter} - cprocessors = [] + cprocessors = {'previous':Comments.Previous, + 'grouper':Comments.Grouper} linker = None linker_opts = {'processors':[]} formatter = None @@ -121,11 +122,11 @@ def make_processor(argv): translator_opts['filter'] = cfilters[a]() elif o == '--cprocessor': - if a not in ['previous', 'grouper']: + if a not in cprocessors: error('%s is not a known comment processor.\n' - '\t possible values are : previous, grouper') - cprocessors.append({'previous':Comments.Previous, - 'grouper':Comments.Grouper}[a]()) + '\t possible values are : %s' + %(a, ', '.join([p for p in cprocessors]))) + translator_opts['processor'] = cprocessors[a]() elif o in ['-l', '--linker']: if not linker: