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

CLI Optionparser #1

Merged
merged 3 commits into from Apr 10, 2012
Merged

CLI Optionparser #1

merged 3 commits into from Apr 10, 2012

Conversation

git001
Copy link
Contributor

@git001 git001 commented Apr 10, 2012

Hi,

I have added the option parser.
The following calls are tested by me.

python haproxy-dconv.py --infile ../configuration.txt --outfile ../configuration.html
python haproxy-dconv.py --in ../configuration.txt --out ../configuration.html
python haproxy-dconv.py -i ../configuration.txt -o ../configuration.html

cbonte added a commit that referenced this pull request Apr 10, 2012
@cbonte cbonte merged commit 6c5e1cf into cbonte:master Apr 10, 2012
@cbonte
Copy link
Owner

cbonte commented Apr 10, 2012

Commits merged, thanks.

I also made some modifications to secure the command line parsing.

@cbonte
Copy link
Owner

cbonte commented Apr 10, 2012

Also, I removed this syntax :
python haproxy-dconv.py --in ../configuration.txt --out ../configuration.html

we should avoid the multiplication of option names for doing the same thing ;-)

@git001
Copy link
Contributor Author

git001 commented Apr 10, 2012

Thanks, I'm a python rookie ;-)

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

Successfully merging this pull request may close these issues.

None yet

2 participants