Discussion:
Port from optparse to argparse to ?
Stuart Axon
2013-01-02 22:25:35 UTC
Permalink
Hi All :)
   Does anyone have any objection to me moving shoebot to argparse?
It would mean we'd have a minimum of python 2.7.x, I think that's OK though as it's the last of the 2.7 line... it should also make porting to 3.x easier.

Anyway - my real motivation is that it looks like it'll be easier to pass parameters to shoebot scripts this way + making it easier to run run sphinx-build within shoebot - getting us -docs with the same namespace as a running shoebot.


Great to see all the recent activity on github, btw.

S++
Ricardo Lafuente
2013-01-03 00:08:56 UTC
Permalink
Sure! I just added the 2.7 requirement to the README file.

Command-line parameters + var() would be super wonderful.
Post by Stuart Axon
Hi All :)
Does anyone have any objection to me moving shoebot to argparse?
It would mean we'd have a minimum of python 2.7.x, I think that's OK
though as it's the last of the 2.7 line... it should also make porting
to 3.x easier.
Anyway - my real motivation is that it looks like it'll be easier to
pass parameters to shoebot scripts this way + making it easier to run
run sphinx-build within shoebot - getting us -docs with the same
namespace as a running shoebot.
Great to see all the recent activity on github, btw.
S++
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart Axon
2013-01-03 09:02:19 UTC
Permalink
This was more about being able to use sbot instead of python - so munging out the shoebot specific parameters like -w so things like sphinx will behave - I should really add vars from the commandline though, as it is a useful feature.
 
S++
Post by Stuart Axon
________________________________
Sent: Thursday, January 3, 2013 12:08 AM
Subject: Re: [shoebot-devel] Port from optparse to argparse to ?
Sure! I just added the 2.7 requirement to the README file.
Command-line parameters + var() would be super wonderful.
Post by Stuart Axon
Hi All :)
    Does anyone have any objection to me moving shoebot to argparse?
It would mean we'd have a minimum of python 2.7.x, I think that's OK
though as it's the last of the 2.7 line... it should also make porting
to 3.x easier.
Anyway - my real motivation is that it looks like it'll be easier to
pass parameters to shoebot scripts this way + making it easier to run
run sphinx-build within shoebot - getting us -docs with the same
namespace as a running shoebot.
Great to see all the recent activity on github, btw.
S++
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Loading...