diff --git a/cmd/cmd_test.go b/cmd/cmd_test.go index 76ed0634e..fee08cd98 100644 --- a/cmd/cmd_test.go +++ b/cmd/cmd_test.go @@ -26,12 +26,14 @@ const cfgHomeKey = "EXERCISM_CONFIG_HOME" // test, call the command by calling Execute on the App. // // Example: -// cmdTest := &CommandTest{ -// Cmd: myCmd, -// InitFn: initMyCmd, -// Args: []string{"fakeapp", "mycommand", "arg1", "--flag", "value"}, -// MockInteractiveResponse: "first-input\nsecond\n", -// } +// +// cmdTest := &CommandTest{ +// Cmd: myCmd, +// InitFn: initMyCmd, +// Args: []string{"fakeapp", "mycommand", "arg1", "--flag", "value"}, +// MockInteractiveResponse: "first-input\nsecond\n", +// } +// // cmdTest.Setup(t) // defer cmdTest.Teardown(t) // ... diff --git a/cmd/submit.go b/cmd/submit.go index aaf3a93c1..5ca3a6cc2 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -19,12 +19,14 @@ import ( // submitCmd lets people upload a solution to the website. var submitCmd = &cobra.Command{ - Use: "submit FILE1 [FILE2 ...]", + Use: "submit [FILE1 ...]", Aliases: []string{"s"}, Short: "Submit your solution to an exercise.", Long: `Submit your solution to an Exercism exercise. Call the command with the list of files you want to submit. + If you omit the list of files, the CLI will attempt to submit + automatically the appropriate solution files for the exercise. `, RunE: func(cmd *cobra.Command, args []string) error { cfg := config.NewConfig()