Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone command cli pattern is weird #2

Open
kellrott opened this issue Mar 4, 2025 · 2 comments
Open

clone command cli pattern is weird #2

kellrott opened this issue Mar 4, 2025 · 2 comments

Comments

@kellrott
Copy link

kellrott commented Mar 4, 2025

The command is documented as

g3t clone --help
Usage: g3t clone [OPTIONS]

  Clone meta and files from remote.

Options:
  --project_id TEXT             Gen3 program-project G3T_PROJECT_ID

The project id is a required argument, so why is it passed as a flag?

Rather then

g3t clone --project_id my-cool-project

it should be something like:

g3t clone my-cool-project
@kellrott
Copy link
Author

kellrott commented Mar 4, 2025

If I run

(g3t) RNB11295:caliper-design ellrott$ g3t --profile ohsu-dev clone gdc_lung

I get

not enough values to unpack (expected 2, got 1)

@kellrott
Copy link
Author

kellrott commented Mar 4, 2025

It turns out that the project 'name' was wrong, it's PROGRAM-PROJECT which is weird. When I run g3t projects ls I get

- /programs/cbds/projects/gdc_lung

Expecting the user to manually translate that into cbds-gdc_lung in order to get clone to work is a bit much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant