1 个仓库
Defining the user interface of a command-line tool using human-readable usage messages as the formal specification.
Distinct from Command Line Interface Design: Distinct from visual layout design; focuses on the logical interface definition via a usage string.
Explore 1 awesome GitHub repository matching user interface & experience · CLI Specification Design. Refine with filters or upvote what's useful.
Docopt 是一个命令行参数解析器和声明式接口工具,可将原始终端输入转换为结构化数据映射。它直接从标准化的 POSIX 风格帮助信息中推导解析逻辑和需求,将文档作为接口的正式规范。 该系统实现了 POSIX 用法模式解析器,将人类可读的帮助字符串转换为提取选项和位置参数的规则。它根据用户定义的内部用法模式自动生成帮助屏幕和版本信息。 该工具通过严格的参数和选项排序确保可预测的用户体验,防止在遇到位置参数后混入其他输入。它为命令行接口设计提供了完整的实现,通过将输入标记与预定义模式匹配来填充数据结构。
Defines how a program accepts user inputs by writing a clear usage message that the system automatically parses.