← 全部工具

synesissoftware/libCLImate.Ruby

热度 70 更新于 开发与构建

Command-Line Interface boilerplate mini-framework, for Ruby

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

libCLImate.Ruby <!-- omit in toc --

libCLImate, for Ruby

[](https://opensource.org/licenses/BSD-3-Clause) [](https://badge.fury.io/rb/libclimate-ruby) [](https://github.com/synesissoftware/libCLImate.Ruby/commits/master) [](https://github.com/synesissoftware/libCLImate.Ruby/actions/workflows/ruby.yml)

Table of Contents <!-- omit in toc --

  • Introduction
  • Installation
  • Components
  • Examples
  • Project Information
  • Where to get help
  • Contribution guidelines
  • Dependencies
  • Efferent (fan-out)
  • Runtime Dependencies (aka "Normal Dependencies")
  • Development Dependencies
  • Afferent (fan-in)
  • Runtime dependents
  • Development dependents
  • Related projects
  • License

Introduction

libCLImate is a portable, lightweight mini-framework that encapsulates the common aspects of Command-Line Interface boilerplate, including:

  • command-line argument parsing and sorting, into flags, options, and values;
  • validating given and/or missing arguments;
  • a declarative form of specifying the CLI elements for a program, including associating blocks with flag/option specifications;
  • provision of de-facto standard CLI facilities, such as responding to '--help' and '--version';

libCLImate.Ruby is the Ruby version.

Installation

Install via gem as in:

gem install libclimate-ruby

or add it to your Gemfile.

Use via require, as in:

require 'libclimate'

Components