V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
polythene
V2EX  ›  Python

pocoo 新发布的 click

  •  
  •   polythene ·
    polyrabbit · 2014-04-24 20:45:49 +08:00 · 4459 次点击
    这是一个创建于 3647 天前的主题,其中的信息可能已经有所发展或是发生改变。
    又一款命令行解析器
    http://click.pocoo.org/
    不过用法确实挺有意思的
    10 条回复    1970-01-01 08:00:00 +08:00
    cabinw
        1
    cabinw  
       2014-04-24 20:48:59 +08:00
    pocoo的项目个个赞
    est
        2
    est  
       2014-04-24 20:54:53 +08:00
    遇到组合参数、互斥参数怎么办?
    timonwong
        3
    timonwong  
       2014-04-24 21:15:07 +08:00
    @est

    互斥参数,还是有。

    组合参数不知道什么意思,单纯的多值,还是有时序耦合的?如果后者估计要跪

    灵活性当然不如手撸argparse...
    TankyWoo
        4
    TankyWoo  
       2014-04-24 21:44:24 +08:00
    Pocoo出品,必属精品
    icevil
        5
    icevil  
       2014-04-24 22:15:57 +08:00 via iPhone
    还有很大改进余地,期待。
    polythene
        6
    polythene  
    OP
       2014-04-24 22:45:45 +08:00
    @icevil 对,作者也说了:
    `I did not expect this to be on hackernews this early. I want to point out that I have not made a release yet and it's not yet feature complete. Mainly I want to ask for feedback on the general design.`
    gkiwi
        7
    gkiwi  
       2014-04-25 00:08:49 +08:00
    突然想起大妈这条微博(http://weibo.com/1400936805/ABPeWyQfZ):

    MayLava
        8
    MayLava  
       2014-04-25 00:09:44 +08:00
    赞,先mark了。
    glasslion
        9
    glasslion  
       2014-04-25 00:36:57 +08:00
    还是喜欢 docopt
    est
        10
    est  
       2014-04-25 14:21:32 +08:00
    @timonwong 嗯。我是想 ffmpeg 或者 openssl 命令行那种参数怎么配得出来。。。换我肯定崩溃
    @gkiwi 哈我也想到了。没找到地址。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5315 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 07:54 · PVG 15:54 · LAX 00:54 · JFK 03:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.