Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument parsing #7

Open
lmoustakas opened this issue Feb 20, 2013 · 3 comments
Open

Argument parsing #7

lmoustakas opened this issue Feb 20, 2013 · 3 comments

Comments

@lmoustakas
Copy link

I have had really good success using argparse for flexible command line parsing, which will allow for arguments to be passed pretty painlessly from a %run command within ipython, from a terminal command line, or with the routine as an executable (as long as you have the usual #!/usr/bin/env python line in the routine).

(These are edits that I'm planning on doing on my clone of this project, unless you beat me to it).

@drphilmarshall
Copy link
Owner

Excellent - I was just thinking the other day that I should switch to
argparse. This is a pull request I would love to receive! Thanks Leonidas
:-)

On Wed, Feb 20, 2013 at 12:00 AM, Leonidas Moustakas <
[email protected]> wrote:

I have had really good success using argparse for flexible command line
parsing, which will allow for arguments to be passed pretty painlessly from
a %run command within ipython, from a terminal command line, or with the
routine as an executable (as long as you have the usual #!/usr/bin/env
python line in the routine).

(These are edits that I'm planning on doing on my clone of this project,
unless you beat me to it).


Reply to this email directly or view it on GitHubhttps://github.com//issues/7.

@dfm
Copy link
Collaborator

dfm commented Feb 20, 2013

Another nice option is docopt. It's my current favourite! It's nice because it forces you to always keep the documentation up to date.

@drphilmarshall
Copy link
Owner

Well, I certainly approve of that.

On Wed, Feb 20, 2013 at 1:36 PM, Dan Foreman-Mackey <
[email protected]> wrote:

Another nice option is docopt http://docopt.org/. It's my current
favourite! It's nice because it forces you to always keep the documentation
up to date.


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-13831787.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants