fix: mason help make
doesn't show command line args in help description
#85
Labels
bug
Something isn't working
Description
Running
mason help make
doesn't list the args that the make command takes. This is probably a small, unfortunate side effect of the intended behavior with bricks being subcommands. Instead, it outputs the following in a project without any bricks:Steps To Reproduce
mason help make
Expected Behavior
The following:
Additional Context
The problem seems to reside with the structure of the subcommands here:
mason/lib/src/commands/make.dart
Lines 48 to 65 in eef7d44
Because subcommands are only defined for bricks that have been found earlier, it is omitting the flags from the command altogether which is preventing the
args
package from generating accurate help:mason/lib/src/commands/make.dart
Lines 16 to 26 in eef7d44
I would have submitted a pull request, but I wasn't sure how to do this as this without breaking the flags for each brick subcommand. If you'd like help, feel free to point me in the right direction and I'll see what I can do. 😅
The text was updated successfully, but these errors were encountered: