-
Notifications
You must be signed in to change notification settings - Fork 76
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
Make buy-xmr the default behaviour #273
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting! Thanks for looking into this!
Had an idea that could reduce the duplication a bit. Let me know what you think.
bff6ff6
to
bd0da9a
Compare
bd0da9a
to
fd17729
Compare
23085ac
to
e843d58
Compare
A new struct, CliExecutionParams, was created to represent the execution path of the program and separate program execution from Cli argument parsing.
Since buy_xmr is the default behaviour we can and should rename the binary to buy_xmr.
Move alice connection args to struct. Move config and debug args to struct.
The parsing is the most important thing it should come first.
Changed the parse args function to support these tests
e843d58
to
948cc99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Good that we got some tests in :)
I think you will like this @da-kami !
Sorry to be the party pooper for putting my veto in for this change. I think the change from |
@rishflab Thanks for putting this effort in! I actually agree with @da-kami in that That being said, I think we made some great progress in this PR in regards to testing. Would you mind porting that to current master? |
Let's close this for now. The rename to @rishflab It would still be good to get tests in for the commandline parsing if you get around to it. |
Closes #234