Default subcommand with default arguments: Format current directory #641
Labels
epic: usability-end-users
Relates to the usability of Topiary for endusers to use Topiary as a generic "good enough" formatter
type: feature request
After a conversation with clap's primary author/maintainer, it turns out that the default subcommand flow is possible to express in clap, while maintaining consistent usage text. CLIG makes the good point that defaults block potential future expansion, however there is a compromise in Topiary's case: bare
topiary [GLOBAL_OPTS] [FORMAT_OPTS]
could be a shortcut fortopiary [GLOBAL_OPTS] format [FORMAT_OPTS] .
(i.e., recursively format everything we understand in the current directory), which would be the most likely thing a user would want to do.Doing this will enable a very convenient shortcut, but not prohibit future expansion nor be a breaking change (i.e., wouldn't require another minor release bump).
The text was updated successfully, but these errors were encountered: