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

--program-dir can only be specified before a subcommand #2289

Closed
phated opened this issue Aug 11, 2023 · 0 comments · Fixed by #2290
Closed

--program-dir can only be specified before a subcommand #2289

phated opened this issue Aug 11, 2023 · 0 comments · Fixed by #2290
Assignees
Labels
bug Something isn't working

Comments

@phated
Copy link
Contributor

phated commented Aug 11, 2023

Aim

We have a hidden flag called --program-dir that can be specified to set the root of any nargo subcommand; however, it currently needs to be placed before any nargo subcommand, such as nargo --program-dir /foo/bar/baz test.

We should instead be able to place this anywhere, including after the subcommand, such as nargo test --program-dir /foo/bar/baz

Expected Behavior

The --program-dir should be allowed anywhere.

This can be fixed by making it a global flag via the clap macro.

Bug

It is not allowed anywhere.

To Reproduce

Installation Method

None

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

Yes

Support Needs

No response

@phated phated added the bug Something isn't working label Aug 11, 2023
@phated phated self-assigned this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant