You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
claudbg/.beans/claudbg-a532--include-help-...

1.2 KiB

title status type priority created_at updated_at parent
`--include` help text should enumerate valid values todo bug low 2026-03-30T04:38:03Z 2026-03-30T04:41:14Z claudbg-tci9

Problem

The --include flag help text says "Comma-separated content to include: thinking, output." but clap does not enumerate the valid tokens in --help output. Users cannot discover valid values from --help alone.

Current declaration (src/cli.rs)

/// Comma-separated content to include: thinking, output.
#[arg(long, global = true, default_value = "")]
pub include: IncludeList,

The valid tokens are thinking and output (parsed in IncludeList::from_str).

Expected behavior

The help output should clearly show: [possible values: thinking, output] or equivalent. Options:

  1. Update the #[arg(help = ...)] string to explicitly state the valid values and format.
  2. Or use clap's value_parser with a custom validator that also shows valid choices.

Since IncludeList is a comma-separated composite (not a single enum value), option 1 (explicit help string) is simplest.

Relevant files

  • src/cli.rsIncludeList, GlobalOpts, the include field annotation