onyx-lang / onyx

✨ The compiler and developer toolchain for Onyx
https://onyxlang.io
BSD 2-Clause "Simplified" License
576 stars 22 forks source link

Feature: Implementing help as a subcommand for other subcommands. #126

Closed DavidSatimeWallin closed 8 months ago

DavidSatimeWallin commented 8 months ago

It's become quite the norm in many cli applications (compilers, etc) to not only present the help section by typing, for example, "onyx help build" but also by appending help to the subcommand you're looking into.

This simple fix will present the relevant help-section by either doing "onyx help build" or "onyx build help".

Could probably be done in a better way to enable putting help after certain, more complex, flags that might need their own detailed help section.

brendanfh commented 8 months ago

I actually already implemented this in the newest version of the compiler which should be released soon! So sorry again, but I will be closing this pull request.