Here’s the help page of exercism submit --help. I think this could be improved by explaining the implicit behavior. I think that documentation is even wrong in a way? It looks like the first file is required.
Submit your solution to an Exercism exercise.
Call the command with the list of files you want to submit.
Usage:
submit FILE1 [FILE2 ...] [flags]
Aliases:
submit, s
Flags:
-h, --help help for submit
Global Flags:
--timeout int override the default HTTP timeout (seconds)
--unmask-token will unmask the API during a request/response dump
-v, --verbose verbose output
I think updating the HELP to default to exercism submit would be wise improvement, and then adding a note explaining that you can also specify files but this is discouraged. I’ll add it to Erik’s list
var submitCmd = &cobra.Command{
Use: "submit [FILES ...]",
Aliases: []string{"s"},
Short: "Submit your solution to an exercise.",
Long: `Submit your solution to an Exercism exercise.
Call the command without any arguments to submit the default set of files.
Alternatively, you can explicitly provide a space-separated list of files.
In that case, make sure to submit all the files required for testing.
For example, some language tracks may require a project manifest to be
submitted (package.json, Cargo.toml, go.mod...)
`,