Closed tonycody closed 3 weeks ago
It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!
Wanted to comment lol. This would be a nice addition. I'm not sure how to add it myself. @jhheider mind pointing me to the right direction?
almost certainly a check to see if it
is zero-length https://github.com/pkgxdev/pkgx/blob/c60ba3d55d8f655d50a2986afa83202906697d94/src/parse-args.ts#L73 is the place to put the logic; oddly there's a mode = help
on line 28, but help
seems to set the mode to content
on line 106. possibly different mode
s.
quick solution might be if it
is empty, treat it as containing only --help
.
pkgx
by itself lists the active environment and used to say something if there is none. Certainly listing --help
makes sense though even though it's convention, I don't consider it particularly important. Running a command without knowing what it does is—dare I say it—foolhardy.
By default, the pkgx command is executed without any arguments and without any prompts.
It is recommended that, as with most command line programs, help messages be given by default when the user has nothing to parameterize. For example: git