<s> from abc import abstractmethod , ABCMeta <EOL> import argparse <EOL> class LocalizationCommandLineOperation ( object ) : <EOL> __metaclass__ = ABCMeta <EOL> @ abstractmethod <EOL> def name ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> @ abstractmethod <EOL> def description ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def configure_parser ( self , parser ) : <EOL> """<STR_LIT>""" <EOL> parser . add_argument ( "<STR_LIT>" , default = "<STR_LIT>" , help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , help = "<STR_LIT>" , action = "<STR_LIT:store_true>" ) <EOL> @ abstractmethod <EOL> def run ( self , parsed_args ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def run_with_standalone_parser ( self ) : <EOL> """<STR_LIT>""" <EOL> parser = argparse . ArgumentParser ( description = self . description ( ) ) <EOL> self . configure_parser ( parser ) <EOL> self . run ( parser . parse_args ( ) ) </s>
