Re: [Pywikipedia-l] Standard argument parsing

2014-08-26 Thread Amir Ladsgroup
On 8/25/14, Merlijn van Deen valhall...@arctus.nl wrote: On 25 August 2014 13:50, Amir Ladsgroup ladsgr...@gmail.com wrote: No, zip http://linux.about.com/od/commands/a/blcmdl1_zipx.htm and rar http://comptb.cects.com/using-the-winrar-command-line-tools-in-windows/ both use standard system

Re: [Pywikipedia-l] Standard argument parsing

2014-08-26 Thread Strainu
2014-08-26 16:39 GMT+03:00 Amir Ladsgroup ladsgr...@gmail.com: 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

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 strain...@gmail.com wrote: 2014-08-26 16:39 GMT+03:00 Amir Ladsgroup ladsgr...@gmail.com: My main proposal

[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 sysargv for

Re: [Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Merlijn van Deen
On 25 August 2014 13:00, Amir Ladsgroup ladsgr...@gmail.com 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

Re: [Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Amir Ladsgroup
No, zip http://linux.about.com/od/commands/a/blcmdl1_zipx.htm and rar http://comptb.cects.com/using-the-winrar-command-line-tools-in-windows/ 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 start

Re: [Pywikipedia-l] Standard argument parsing

2014-08-25 Thread Merlijn van Deen
On 25 August 2014 13:50, Amir Ladsgroup ladsgr...@gmail.com wrote: No, zip http://linux.about.com/od/commands/a/blcmdl1_zipx.htm and rar http://comptb.cects.com/using-the-winrar-command-line-tools-in-windows/ both use standard system (note that -r is standard, - *recurse is not) * No, they

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