<s> from optparse import make_option <EOL> class Dataset ( object ) : <EOL> def register ( self , cmd ) : <EOL> opt = make_option ( self . Meta . command , <EOL> action = '<STR_LIT:store_true>' , <EOL> dest = self . Meta . command [ <NUM_LIT:2> : ] , <EOL> default = False , <EOL> help = self . Meta . title ) <EOL> cmd . option_list = cmd . option_list + ( opt , ) <EOL> def run_import ( self ) : <EOL> print '<STR_LIT>' % self . Meta . title <EOL> self . import_dataset ( ) <EOL> print '<STR_LIT>' <EOL> def check_trigger ( self , options ) : <EOL> if self . Meta . command [ <NUM_LIT:2> : ] in options : <EOL> if options [ self . Meta . command [ <NUM_LIT:2> : ] ] : <EOL> self . run_import ( ) <EOL> return True <EOL> return False </s>
