<s> import sys , os <EOL> import whisper <EOL> from optparse import OptionParser <EOL> option_parser = OptionParser ( <EOL> usage = '<STR_LIT>' % '<STR_LIT:|>' . join ( whisper . aggregationMethods ) ) <EOL> ( options , args ) = option_parser . parse_args ( ) <EOL> if len ( args ) < <NUM_LIT:2> : <EOL> option_parser . print_usage ( ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> path = args [ <NUM_LIT:0> ] <EOL> aggregationMethod = args [ <NUM_LIT:1> ] <EOL> oldAggregationMethod = whisper . setAggregationMethod ( path , aggregationMethod ) <EOL> print '<STR_LIT>' % ( path , oldAggregationMethod , aggregationMethod ) </s>
