Commons Cli 简明教程

Apache Commons CLI Tutorial

Apache Commons CLI 是 Apache Commons 的组件,源自 Java API,并提供了用于解析传递给程序的命令行参数/选项的 API。此 API 还允许打印与可用选项相关的帮助。本教程涵盖了对 Apache Commons CLI 进行基本理解所需的大多数主题,并让您了解它的工作原理。

The Apache Commons CLI are the components of the Apache Commons which are derived from Java API and provides an API to parse command line arguments/options which are passed to the programs. This API also enables to print the help related to options available. This tutorial covers most of the topics required for a basic understanding of Apache Commons CLI and to get a feel of how it works.

Audience

本教程专为初学者准备,以帮助他们理解与 Apache Commons CLI 相关的从基础到高级的概念。

This tutorial has been prepared for the beginners to help them understand the basic to advanced concepts related to the Apache Commons CLI.

Prerequisites

在您开始练习本参考中提供的各种类型的示例之前,我们假设您已经了解计算机程序和计算机编程语言。

Before you start practicing various types of examples given in this reference, we assume that you are already aware about computer programs and computer programming languages.