top | item 4065517 Docopt creates beautiful command-line interfaces 7 points| halst | 13 years ago |docopt.org | reply 7 comments order hn newest [+] [-] ansible|13 years ago|reply That is a great idea that makes you smack yourself on the head and say "Why didn't I think of that?". Or more like, "Why didn't I think of that 10 years ago?". I think I'll have to port it to my favorite scripting language. [+] [-] Hinrik|13 years ago|reply If that language is Ruby, someone already beat you to it: https://github.com/halst/docopt.rb [+] [-] halst|13 years ago|reply It should be easy to port it - docopt is only 366 LOC itself. [+] [-] halst|13 years ago|reply wow, great! what is your scripting language? load replies (1) [+] [-] grout|13 years ago|reply Perl has this: https://metacpan.org/module/Getopt::Declare
[+] [-] ansible|13 years ago|reply That is a great idea that makes you smack yourself on the head and say "Why didn't I think of that?". Or more like, "Why didn't I think of that 10 years ago?". I think I'll have to port it to my favorite scripting language. [+] [-] Hinrik|13 years ago|reply If that language is Ruby, someone already beat you to it: https://github.com/halst/docopt.rb [+] [-] halst|13 years ago|reply It should be easy to port it - docopt is only 366 LOC itself. [+] [-] halst|13 years ago|reply wow, great! what is your scripting language? load replies (1)
[+] [-] Hinrik|13 years ago|reply If that language is Ruby, someone already beat you to it: https://github.com/halst/docopt.rb
[+] [-] ansible|13 years ago|reply
[+] [-] Hinrik|13 years ago|reply
[+] [-] halst|13 years ago|reply
[+] [-] halst|13 years ago|reply
[+] [-] grout|13 years ago|reply