Skip to content

Flag conflict: -p is ambiguous between --parent and --priority #159

@lilpacy

Description

@lilpacy

Summary

-p is a short flag for both --parent and --priority in linear issue create. When both are used in the same command, the CLI errors with:

error: Option "--parent" can only occur once, but was found several times.

Reproduction

linear issue create --team LIL -t "Test" -d "desc" -s "Todo" -p 2 --parent LIL-220

The -p 2 is intended as --priority 2, but the CLI interprets it as a second --parent flag.

Expected behavior

Either:

  • -p should be assigned to only one of the two options (and the other gets a different short flag or none)
  • Or the CLI should detect the ambiguity and provide a clear error message

Workaround

Use the long form --priority explicitly:

linear issue create --team LIL -t "Test" -d "desc" -s "Todo" --priority 2 --parent LIL-220

Environment

  • linear-cli version: 1.10.0

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