Skip to main content

Assist in parsing cli options and parameters

Project description

# CliMan

## 项目简介

该项目用于解析CLI命令行参数,基于argparser,采用类似单例模式

### 安装

pip install climan

### 使用

  1. 初始化

    CliMan.init(“desc…”)

  2. 添加选项或者参数

    CliMan.add_flag(“-f”, “–flag”) CliMan.add_arg(“cmd”)

  3. 解析

    CliMan.parse()

  4. 取值

    v1 = CliMan.get_str(“cmd”) v2 = CliMan.get_float(“flag”)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

climanager-0.0.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page