[dundee] Command-lines in Python

azmodie azmodie at gmail.com
Fri Apr 26 13:09:11 UTC 2013


On 26 Apr 2013 13:05, "Robert Ladyman" <it at file-away.co.uk> wrote:
>
> For those of you, like me, who have suffered with Python's optparse and
> argparse and have not encountered docopt, watch this video (also a very
good
> presentation). You need only watch it to 7:54 if you haven't much time,
but
> the elegance Vladimir Keleshev's solution is elegant and simple.
>
> http://www.youtube.com/watch?v=pXhcPJK5cMc
> --
> Robert Ladyman
> File-Away Limited
> 3 Ralston Business Centre, Newtyle, Blairgowrie
> Perthshire  PH12 8TL SCOTLAND
> Tel: +44 (0) 1828 898 158
> Mobile: +44 (0) 7732 771 649
> http://www.file-away.co.uk
>
> ============================================
> Registered Office: 30 Church Street, Newtyle, Blairgowrie
> Perthshire, PH12 8TZ SCOTLAND
> Registered in Scotland, Company Number SC222086
>
>
> _______________________________________________
> dundee GNU/Linux Users Group mailing list
> dundee at mailman.lug.org.uk  http://dundeelug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/dundee
> Chat on IRC, #tlug on irc.lug.org.uk

Been using docopt for a while now awesome module.

Also learnt a lot from this guy on ways to use standard library.

Eg pythonic not c style.

http://www.youtube.com/watch?v=OSGv2VnC0go

Azmodie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/dundee/attachments/20130426/221643a3/attachment.html>


More information about the dundee mailing list