Jaymon / captain

command line python scripts for humans

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

store_false action

Jaymon opened this issue · comments

basically, passing in:

    @arg(
        "--discard-foo",
        action="store_false",
        help="Pass this flag to discard foo"
    )

Would be equivalent to this:

    @arg(
        "--discard-foo",
        default=True,
        const=False,
        action="store_const",
        help="Pass this flag to discard foo"
    )