<s> import sys <EOL> from os . path import join <EOL> import menuinst <EOL> def main ( ) : <EOL> from optparse import OptionParser <EOL> p = OptionParser ( <EOL> usage = "<STR_LIT>" , <EOL> description = "<STR_LIT>" ) <EOL> p . add_option ( '<STR_LIT>' , '<STR_LIT>' , <EOL> action = "<STR_LIT:store>" , <EOL> default = sys . prefix ) <EOL> p . add_option ( '<STR_LIT>' , <EOL> action = "<STR_LIT:store_true>" ) <EOL> p . add_option ( '<STR_LIT>' , <EOL> action = "<STR_LIT:store_true>" ) <EOL> opts , args = p . parse_args ( ) <EOL> if opts . version : <EOL> sys . stdout . write ( "<STR_LIT>" % menuinst . __version__ ) <EOL> return <EOL> for arg in args : <EOL> menuinst . install ( join ( opts . prefix , arg ) , opts . remove , opts . prefix ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
