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

Add -- to nix-your-shell invocations #15

Merged
merged 1 commit into from Feb 13, 2023
Merged

Add -- to nix-your-shell invocations #15

merged 1 commit into from Feb 13, 2023

Conversation

9999years
Copy link
Collaborator

This fixes extra arguments. Before, you'd see this if you tried to use any arguments with nix-shell or nix develop:

$ nix develop --command whatever
error: unexpected argument '--command' found

  note: to pass '--command' as a value, use '-- --command'

Usage: nix-your-shell <SHELL> nix <ARGS>

For more information, try '--help'.

This fixes extra arguments. Before, you'd see this if you tried to use
any arguments with `nix-shell` or `nix develop`:

```
$ nix develop --command whatever
error: unexpected argument '--command' found

  note: to pass '--command' as a value, use '-- --command'

Usage: nix-your-shell <SHELL> nix <ARGS>

For more information, try '--help'.
```
@9999years 9999years added the patch A patch-level change (backwards-compatible bug fixes) label Feb 13, 2023
@9999years 9999years merged commit 9a2dfdc into main Feb 13, 2023
@9999years 9999years deleted the rebeccat/fix-args branch February 13, 2023 21:19
@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch A patch-level change (backwards-compatible bug fixes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant