Skip to content

Commit 0335b84

Browse files
Fix submit command usage
1 parent 0513c81 commit 0335b84

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

cmd/cmd_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ const cfgHomeKey = "EXERCISM_CONFIG_HOME"
2626
// test, call the command by calling Execute on the App.
2727
//
2828
// Example:
29-
// cmdTest := &CommandTest{
30-
// Cmd: myCmd,
31-
// InitFn: initMyCmd,
32-
// Args: []string{"fakeapp", "mycommand", "arg1", "--flag", "value"},
33-
// MockInteractiveResponse: "first-input\nsecond\n",
34-
// }
29+
//
30+
// cmdTest := &CommandTest{
31+
// Cmd: myCmd,
32+
// InitFn: initMyCmd,
33+
// Args: []string{"fakeapp", "mycommand", "arg1", "--flag", "value"},
34+
// MockInteractiveResponse: "first-input\nsecond\n",
35+
// }
36+
//
3537
// cmdTest.Setup(t)
3638
// defer cmdTest.Teardown(t)
3739
// ...

cmd/submit.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ import (
1919

2020
// submitCmd lets people upload a solution to the website.
2121
var submitCmd = &cobra.Command{
22-
Use: "submit FILE1 [FILE2 ...]",
22+
Use: "submit [FILE1 ...]",
2323
Aliases: []string{"s"},
2424
Short: "Submit your solution to an exercise.",
2525
Long: `Submit your solution to an Exercism exercise.
2626
2727
Call the command with the list of files you want to submit.
28+
If you omit the list of files, the CLI will attempt to submit
29+
automatically the appropriate solution files for the exercise.
2830
`,
2931
RunE: func(cmd *cobra.Command, args []string) error {
3032
cfg := config.NewConfig()

0 commit comments

Comments
 (0)