wwwjfy

docopt -- command-line interface description language

  •  
  •   wwwjfy · Oct 5, 2012 · 3259 views
    This topic created in 5049 days ago, the information mentioned may be changed or developed.
    http://docopt.org/

    youtube视频在这:
    PyCon UK 2012: Create *beautiful* command-line interfaces with Python


    optparse argparse又臭又长,这个才是直观好用的命令行参数解析器,直接把标准usage的字符串传过去就好了

    除了python,还支持ruby, coffeescript, php, lua, c
    2 replies    1970-01-01 08:00:00 +08:00
    reorx
        1
    reorx  
       Oct 5, 2012
    没用过 argparse 的可以果断尝试一下,用习惯的完全不想花时间玩这个东西啊。。。
    wwwjfy
        2
    wwwjfy  
    OP
       Oct 5, 2012
    argparse也就是偶尔用到,每次都要翻文档..
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1373 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 16:39 · PVG 00:39 · LAX 09:39 · JFK 12:39
    ♥ Do have faith in what you're doing.