Skip to content

invoke nix directly when --help is mentioned - #294

Merged
maralorn merged 1 commit into
maralorn:mainfrom
leana8959:better-help
Jul 10, 2026
Merged

invoke nix directly when --help is mentioned#294
maralorn merged 1 commit into
maralorn:mainfrom
leana8959:better-help

Conversation

@leana8959

@leana8959 leana8959 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Previously the help will be dumped without color and not in a pager. This would make the new cli --help show in color and all nix command --help in the pager.

Some are not changed because they are already shown with the pager maybe as unintentional result of running nix-shell with log and then entering the shell, for example. Should I still add an explicit case for them?

@leana8959
leana8959 marked this pull request as ready for review July 10, 2026 19:40

@maralorn maralorn left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, strict improvement.

@maralorn

Copy link
Copy Markdown
Owner

At some point we can maybe make this whole command business more DRY I’m not really happy with that whole file …

Also I wonder whether we should maybe print a line like "Run nom --help to see the help for nom instead of nix." before execing?

But that’s all strictly additional.

@maralorn
maralorn merged commit 1608644 into maralorn:main Jul 10, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants