Skip to content

td epic create fails with "flag accessed but not defined: desc" #198

@Helmi

Description

@Helmi

Hi Marcus,

I ran into a small CLI bug while creating an epic from a review.

td epic create is advertised in the help output, but currently fails even for a plain epic:

td version
# td version 0.44.0

tmpdir=$(mktemp -d)
cd "$tmpdir"
git init -q
td init >/dev/null

td epic create "Plain probe epic"

Actual result:

ERROR: flag accessed but not defined: desc
Error: flag accessed but not defined: desc

The same happens with the documented description flag:

td epic create "Probe epic" --description "probe description"

Workaround works fine:

td create "Probe epic" --type epic --description "probe description"

From a quick source look, cmd/epic.go delegates epicCreateCmd to createCmd.RunE, but createCmd always resolves the rich-text aliases description, desc, body, and notes, while epicCreateCmd only defines description. It also does not define description-file, which the shared create path may read next.

Observed on:

  • td version 0.44.0
  • Homebrew install from marcus/tap
  • macOS arm64

Expected: td epic create "Title" should create an epic, and --description should work as advertised.

Thanks.

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