Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use argparse cmd line parser instead of optparse#2

Merged
fabianp merged 2 commits intopythonprofilers:masterfrom
octavo:master
May 13, 2012
Merged

Use argparse cmd line parser instead of optparse#2
fabianp merged 2 commits intopythonprofilers:masterfrom
octavo:master

Conversation

@octavo
Copy link
Contributor

optparse is deprecated, this changes it toargparse. Also, there are some other small changes that have been made, such as getting rid of-o,-l, and-v; and making the filename a positional argument.

Victor added2 commitsMay 12, 2012 17:10
According to the docs, optparse is deprecated(http://docs.python.org/py3k/library/optparse.html), so that leaves uswith argparse.Rundown of what was done:+ removed arguments:    * -o since output can just be redirected    * -l and -v they're not necessary+ made the filename a positional argument+ made the necessary changes to accomodate for the above
@fabianp
Copy link
Collaborator

great, it's in.

fabianp pushed a commit that referenced this pull requestMay 13, 2012
Use argparse cmd line parser instead of optparse
@fabianpfabianp merged commitf2a308a intopythonprofilers:masterMay 13, 2012
fabianp added a commit that referenced this pull requestOct 29, 2014
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@octavo@fabianp

[8]ページ先頭

©2009-2026 Movatter.jp