<s> from argparse import ArgumentParser <EOL> import os <EOL> from postie import Postie <EOL> def is_valid_file ( parser , arg ) : <EOL> arg = os . path . abspath ( arg ) <EOL> if os . path . exists ( arg ) : <EOL> return arg <EOL> parser . error ( "<STR_LIT>" % arg ) <EOL> def create_parser ( ) : <EOL> parser = ArgumentParser ( <EOL> description = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , "<STR_LIT>" , <EOL> required = True , <EOL> dest = "<STR_LIT>" , <EOL> type = lambda x : is_valid_file ( parser , x ) , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> required = True , <EOL> type = lambda x : is_valid_file ( parser , x ) , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> type = str , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> type = str , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> type = int , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , "<STR_LIT>" , <EOL> dest = "<STR_LIT:password>" , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> help = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , <EOL> help = "<STR_LIT>" ) <EOL> return parser <EOL> def main ( ) : <EOL> p = Postie ( create_parser ( ) . parse_args ( ) ) <EOL> p . run ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
