argparse


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2009-03-27
使用用户:  1
Github星:  16
插件作者:  Ben West

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'bewest/argparse'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'bewest/argparse'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'bewest/argparse'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/bewest/argparse

Ⅳ. 文档说明

The argparse module makes it easy to write user friendly command line
interfaces.

The program defines what arguments it requires, and argparse will figure out
how to parse those out of sys.argv. The argparse module also automatically
generates help and usage messages and issues errors when users give the
program invalid arguments.

As of Python >= 2.7, the argparse module is maintained within the Python
standard library. For users who still need to support Python < 2.7, it is
also provided as a separate package, which tries to stay compatible with the
module in the standard library, but also supports older Python versions.

argparse is licensed under the Python license, for details see LICENSE.txt.

Compatibility

argparse should work on Python >= 2.3 (it was tested on 2.3.5, 2.4.4, 2.5.5
and 2.6.5 and 2.7).

Installation

Try one of these:

python setup.py install

easy_install argparse

pip install argparse

putting argparse.py in some directory listed in sys.path should also work

Bugs

If you find a bug, please try to reproduce it with python 2.7.

If it happens there also, please file a bug in the python.org issue tracker.
If it does not happen in 2.7, file a bug in the argparse package issue tracker.

添加新评论