This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
Add fallthrough for antler-proj subcommands or move --path
up one level.
#67
Labels
The following pattern for
--path
feels uncomfortable to me:antler-proj add --path <path> app <args...>
My discomfort is mostly because
--path
is hard to find in help. It is NOT displayed fromantler-proj --help
orantler-proj add app --help
.One of the following feels better:
antler-proj --path <path> add app <args...>
antler-proj add app --path <path> <args...>
Solution 1 above is consistent with the
-C
flag in git. We prefer to mimic git when possible; however,antler-proj init
has a different help text and behavior than the other subcommands.Solution 2 can be achieved by adding fallthrough(true) to the
add
,remove
, andupdate
subcommands; however, in order for CLI11 to show the fallthrough commands in--help
a patch must be applied.It may be that we prefer solution 1 and can accept the difference between
init
and other subcommands. If so, the addition of fallthrough at the highest level and the patch would still allow help to display--path
at all levels AND allow it's use at all levels.The text was updated successfully, but these errors were encountered: