I just want to make backward compatible, since I think most users will still use the interactive way for a while.
Yeah, as for removing the options of YouTube or edx, I agree.

Sent from my iPad/·¢ËÍ×ÔÎÒµÄiPad

> On Dec 27, 2013, at 8:00 AM, Ismael Mejia <notifications@github.com> wrote:
> 
> In edx-dl.py:
> 
> > -""")
> > -
> > +def parse_commandline_options():
> > +    global USER_EMAIL, USER_PSWD, DOWNLOAD_DIRECTORY, USER_AGENT, youtube_subs, edx_subs, video_fmt
> > +    parser = argparse.ArgumentParser(description='A simple tool to download video lectures from edx.org.')
> > +    parser.add_argument('-u', '--user', '--username', action='store', help='username in edX', default='')
> > +    parser.add_argument('-p', '--pswd', '--password', action='store', help='password in edX', default='')
> > +    parser.add_argument('-d', '--dir', '--download-dir', action='store', help='store the files to the specified directory', \
> > +                        default=DEFAULT_DOWNLOAD_DIRECTORY)
> > +    group_ua = parser.add_mutually_exclusive_group()
> > +    group_ua.add_argument('--user-agent', action='store', help='use popular softwares\' user agent', default='edx', \
> > +                          choices=DEFAULT_USER_AGENTS.keys())
> > +    group_ua.add_argument('--custom-user-agent', metavar='USER-AGENT-STRING', action='store', help='specify the user agent string')
> > +    group_st = parser.add_mutually_exclusive_group()
> > +    group_st.add_argument('--subs', '--subtitles', dest='subs', action='store_const', const=(True, True), default=(None, None), help='download the corresponding subtitles')
> > +    group_st.add_argument('--nosubs', '--nosubtitles', dest='subs', action='store_const', const=(False, False), default=(None, None), help='do not download subtitles') 
> I won put an option for nosubs since it could be the default behavior (therefore the flag --subs must activate subs).
> 
> ¡ª
> Reply to this email directly or view it on GitHub.