<s> import os <EOL> import sys <EOL> from zcov . genhtml import action_genhtml <EOL> from zcov . merge import action_merge <EOL> from zcov . scan import action_scan <EOL> from zcov . summarize import action_summarize <EOL> commands = dict ( ( name [ <NUM_LIT:7> : ] . replace ( "<STR_LIT:_>" , "<STR_LIT:->" ) , f ) <EOL> for name , f in locals ( ) . items ( ) <EOL> if name . startswith ( '<STR_LIT>' ) ) <EOL> def usage ( ) : <EOL> print >> sys . stderr , "<STR_LIT>" % ( <EOL> os . path . basename ( sys . argv [ <NUM_LIT:0> ] ) ) <EOL> print >> sys . stderr <EOL> print >> sys . stderr , "<STR_LIT>" <EOL> cmds_width = max ( map ( len , commands ) ) <EOL> for name , func in sorted ( commands . items ( ) ) : <EOL> print >> sys . stderr , "<STR_LIT>" % ( cmds_width , name , func . __doc__ ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> def main ( ) : <EOL> import sys <EOL> if len ( sys . argv ) < <NUM_LIT:2> or sys . argv [ <NUM_LIT:1> ] not in commands : <EOL> usage ( ) <EOL> cmd = sys . argv [ <NUM_LIT:1> ] <EOL> commands [ cmd ] ( cmd , sys . argv [ <NUM_LIT:2> : ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
