antfu-collective / ni

💡 Use the right package manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using '--help', also need to choose agent

smallnine9 opened this issue · comments

Additional context

if we use ni -h or ni --help in a folder where no lockfile exists, the ni also always let user choose an agent. may it's a little confused? because '--help' show the ni's help docs, not related to agent.

https://github.com/antfu/ni/blob/main/src/runner.ts#L48
because in code we first get agent then run command, but maybe '--help' should not perform in this way?

PR welcome :)

alright, this is my PR #111
hope I didn't make a mistake :)