()
return parser.parse_args()
gets the command line args
gets the command line args
gets the command line args
def get_args():
    '''
    gets the command line args
    '''
    parser = argparse.ArgumentParser()
    parser.add_argument('-u', type=str, default='urls.txt', help='The file containing the Podcast feed URLs to parse')
    parser.add_argument('-e', type=str, required=True, help='Email address to send from')
    parser.add_argument('-s', type=str, required=True, help='SMTP server address')
    parser.add_argument('-p', type=str, required=True, help='Password to login to SMTP server')
    parser.add_argument('-t', type=str, required=True, help='Address to send email to')
    return parser.parse_args()
def get_args ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( '-u' , type = str , default = 'urls.txt' , help = 'The file containing the Podcast feed URLs to parse' ) parser . add_argument ( '-e' , type = str , required = True , help = 'Email address to send from' ) parser . add_argument ( '-s' , type = str , required = True , help = 'SMTP server address' ) parser . add_argument ( '-p' , type = str , required = True , help = 'Password to login to SMTP server' ) parser . add_argument ( '-t' , type = str , required = True , help = 'Address to send email to' ) return parser . parse_args ( )