Re: [Pywikipedia-l] Standard argument parsing

2014-08-26 Thread Amir Ladsgroup
No, We can replace first ":" in arguments to "=" and feed them to argprase afterwards so no change in user-frontend (and supporting more ways to work with pywikibot) Best On 8/26/14, Strainu wrote: > 2014-08-26 16:39 GMT+03:00 Amir Ladsgroup : >> My main proposal is that we start to accept -p an

Re: [Pywikipedia-l] Standard argument parsing

2014-08-26 Thread Strainu
2014-08-26 16:39 GMT+03:00 Amir Ladsgroup : > My main proposal is that we start to accept -p and --page for a while > and after like one year we start to deprecate -page. No really acceptable now (or ever). I'm with Travis here. As weird as they might look for linux users, giving up the current pa

Re: [Pywikipedia-l] Standard argument parsing

2014-08-26 Thread Amir Ladsgroup
On 8/25/14, Merlijn van Deen wrote: > On 25 August 2014 13:50, Amir Ladsgroup wrote: > >> No, zip and rar >> >> both use standard system (note that -r is standard, - >

Re: [Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Travis Briggs
Let me just chime in here as someone who recently started using pywikibot. I was very confused by the argument passing style, especially the use of a colon to delimit the name of the argument from its value. I questioned why it was like this and thought about how it would be nicer if it followed s

Re: [Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Merlijn van Deen
On 25 August 2014 13:50, Amir Ladsgroup wrote: > No, zip and rar > > both use standard system (note that -r is standard, - > *recurse is not) * > No, they don't (but

Re: [Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Amir Ladsgroup
No, zip and rar both use standard system (note that -r is standard, - *recurse is not) * About the leaning system, I think we can keep compatibility for a while and sta

Re: [Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Merlijn van Deen
On 25 August 2014 13:00, Amir Ladsgroup wrote: > Hello, > pywikibot doesn't use standard arguments and argument parsing > It doesn't do what /unix/ considers standard. However, we use the same system as e.g. rar and zip. What's the advantage of switching to a new system that will force every us

[Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Amir Ladsgroup
Hello, pywikibot doesn't use standard arguments and argument parsing For example a standard input should be like this: python pwb.py replace "something" "something else" --page="python" --always or python pwb.py replace "something" "something else" --p "python" -a And in back-end, pywikibot uses s