-
Notifications
You must be signed in to change notification settings - Fork 223
Conversation
|
|
Something like this: (note that the code doesn't compile) user202729@bacf07f#diff-f8528230b76c77a45f085693ebe846d5R53-R61
|
Current implementation uses the fact that in a map an element might not even exist. Therefore in the This behavior could be removed by parsing all arguments and returning errors on the required ones, but that would mean that you would need to call the parser like this: parseArgs(args, ParseRequirement{
problemID: true,
contestId: true,
filename: true,
}) So you would need to add all the extra I do like the idea about having result struct though. |
I guess you can choose one of those:
|
you would need to pass that to the constructor. |
It's now implemented. |
Will this get merged? |
Thanks for your great work! I'll handle it on this weekend or next weekend |
I see you changed a lot. Do you want me to resolve the conflicts? |
If you can resolve the conflicts, I'll greatly appreciate your great works! |
All right, I'm onto it. This may take some time though. |
Okay, I re-based it and it should be good to merge. Could contain some bugs, so you might want to test it. |
Great works!
->
Then use your ParseArgs to parse that arguments. |
I'll handle this |
|
Ok. Though I would suggest to rename |
Ok~ |
Hi,
added url support as requested in #47.
Also implemented general argument parsing with a single function to avoid hacking each time.
Because of positional arguments the Submit function still needed some extra work.
I'm new to go and this probably isn't perfect, but I hope it's useful.
Accepts contest/problemset/gym urls.