Skip to content

Documented but unsupported flag key overrides #792

Description

@muzimuzhi

Flag key overrides is shown in doc, but actually unsupported.

flag "--file <file>" overrides="--stdin" // if --file is set, previous --stdin will be ignored

flag-overrides.sh

#!/usr/bin/env -S usage bash
#USAGE flag "--stdin" help="Read from stdin"
#USAGE flag "--file <file>" help="Read from file" overrides="--stdin"
$ usage bash flag-overrides.sh
  × Invalid usage config
   ╭─[flag-overrides.sh:2:44]
 1 │ flag "--stdin" help="Read from stdin"
 2 │ flag "--file <file>" help="Read from file" overrides="--stdin"
   ·                                            ─────────┬─────────
   ·                                                     ╰── unsupported flag key overrides
   ╰────

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions