Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLI
Assigneesstack72

Relationships

#697 swamp data: accept named flags (--model/--name) instead of positional model/name args

Opened by bixu · 6/19/2026· Shipped 6/25/2026

Problem

swamp data get, list, versions, delete, and rename take the model and data-name as positional arguments (swamp data get <model> <name>). Positional ordering is hard for an agent to discover — there is no flag name to match against in --help output or in remembered command patterns — and it is brittle in scripts and stored memory: a single reordering or an inserted flag silently binds the wrong argument. The failure mode is quiet (wrong lookup) rather than a loud parse error.

In this session an agent tried swamp data get <model> --name <data>, which is the natural guess from the flag-based style used elsewhere in the CLI, and got Unknown option "--name".

Proposed solution

Accept named flags for the data identity on all swamp data subcommands that currently take positional model/name:

  • --model <name> and --name <data> (and --new-name for rename)
  • Keep positional args working for backward compatibility; treat flags as equivalent.

Named flags are self-documenting in --help, order-independent, and stable across script and memory reuse — they remove the wrong-argument-binding class of error for non-interactive callers.

Alternatives considered

  • Status quo (positional only): keeps the discovery and brittleness problems above.
  • Flags-only (drop positional): cleaner but breaks every existing script and doc; backward-compatible dual support is preferable.
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORECONTRIBUTOR_NOTIFIED

Shipped

6/25/2026, 6:04:28 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack726/25/2026, 2:46:16 PM
Editable. Press Enter to edit.

stack72 commented 6/25/2026, 6:04:40 PM

Thanks @bixu for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.