Skip to content

ARG_OPTIONAL_BOOLEAN no need to generate the --no-xxx by default #151

Open
@Gcaufy

Description

@Gcaufy

Ref: #14

For example, I have a --yes option.

# ARG_OPTIONAL_BOOLEAN([yes],[y],[Delete action without confirm again])

It generated like this:

The general script's help msg
Usage: /tmp/test.sh [-y|--(no-)yes] [-h|--help]
	-y, --yes, --no-yes: Delete local branches without confirm (off by default)
	-h, --help: Prints help

--no-yes make no sense. and it's totally unnecessary to generate the --no-xxxx option, because the value is off by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions