Open
Description
❯ roc fmt ~/testing/cli_test.roc
error: Found argument '/home/dankey/testing/cli_test.roc' which wasn't expected, or isn't valid in this context
USAGE:
roc [OPTIONS] [ROC_FILE] [-- <ARGS_FOR_APP>...] [SUBCOMMAND]
For more information try --help
Instead it should say the second argument is malformed
Or to go the extra mile, do a flag suggestion by similar words bank
I had an idea to not even exit on bad keyword, rather
error: Found unexpected flag `fmt`. Perhaps you meant `format`.
Proceed with command `roc format cli_test.roc` [Y/n]? _
...