aptly
aptly copied to clipboard
Better error output for wrong vs incomplete commands
Could we have better output for this sort of error?
When I type "aptly snapshot" I get a list of the commands I can use with "aptly snapshot" and some other options.
Today, I kept mistyping "snapshot" as "snapsnot" and the error output was pretty much exactly the same. I figured out that I was mistyping after a few minutes, but the output for a wrong command and an incomplete command have such similar structures. For instance, why even give a list of options at the end if the command is incorrect? Why not just list the incorrect commands? Having differently structured outputs would have really helped me identify the error quicker.