Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.
This repository was archived by the owner on Feb 17, 2020. It is now read-only.

给帮助信息着色 #10

Description

@guonaihong

这样可以提醒使用者,哪些选项是必须要写的
触发条件,某个选项设置打开了must函数,没有在命令行里填入该值又没有默信值的情况下,则标红该usage信息。伪代码如下

flag.Opt("i, int", "test int").Must().Var(&option.Int, 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions