genie exec resume rejects --approve-for-me and -C after the subcommand

Offen
#8 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cli
Bereich
cli

Rechercherichtung

Start by reading the genie exec and resume command definitions and the CLI argument parsing tests. Reproduce the reported ordering with --approve-for-me and -C, then check how options are declared for the parent command and subcommand. Done when both options work after resume, or the help output clearly explains their required position.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Release version

v0.3.0

What happened?

genie exec resume rejects the parent exec options when they come after the subcommand.

$ genie exec resume <session-id> --approve-for-me "noop"
error: unexpected argument '--approve-for-me' found

$ genie exec resume <session-id> -C /tmp "noop"
error: unexpected argument '-C' found

The same options work when placed before resume:

genie exec --approve-for-me -C <dir> --json resume <session-id> -

genie exec resume --help does not list --approve-for-me or -C, and it does not say that they must come before the subcommand. I found the working order by trial and error.

Expected: accept these options in either position, or document the required order in genie exec resume --help.

Steps to reproduce
  1. Run any genie exec session and note its session ID.
  2. Run genie exec resume <session-id> --approve-for-me "noop".
  3. The command fails with unexpected argument.
  4. Run genie exec --approve-for-me resume <session-id> "noop". This form works.
Environment

macOS (Apple silicon), Genie Code CLI installed with install.sh.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
13
Forks
1
Ø Merge
35 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus databricks/genie-code-cli

Alle Issues in databricks/genie-code-cli

Ähnliche Issues

Weitere Issues zu CLI

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.