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

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cli
Domain
cli

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
No language data
Stars
13
Forks
1
Avg merge
35m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databricks/genie-code-cli

All issues in databricks/genie-code-cli

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.