diff --git a/cmd/open.go b/cmd/open.go index dd41a3cf6..627eac639 100644 --- a/cmd/open.go +++ b/cmd/open.go @@ -15,9 +15,13 @@ var openCmd = &cobra.Command{ Pass the path to the directory that contains the solution you want to see on the website. `, - Args: cobra.ExactArgs(1), + Args: cobra.MaximumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { - metadata, err := workspace.NewExerciseMetadata(args[0]) + path := "." + if len(args) == 1 { + path = args[0] + } + metadata, err := workspace.NewExerciseMetadata(path) if err != nil { return err } diff --git a/cmd/submit.go b/cmd/submit.go index aaf3a93c1..eb00aa1f4 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 [ ...]", 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 submit the + default solution files for the exercise. `, RunE: func(cmd *cobra.Command, args []string) error { cfg := config.NewConfig() diff --git a/cmd/troubleshoot.go b/cmd/troubleshoot.go index 5fd134d3c..4ea5b1444 100644 --- a/cmd/troubleshoot.go +++ b/cmd/troubleshoot.go @@ -26,7 +26,7 @@ var troubleshootCmd = &cobra.Command{ Long: `Provides output to help with troubleshooting. If you're running into trouble, copy and paste the output from the troubleshoot -command into a GitHub issue so we can help figure out what's going on. +command into a topic on the Exercism forum so we can help figure out what's going on. `, RunE: func(cmd *cobra.Command, args []string) error { cli.TimeoutInSeconds = cli.TimeoutInSeconds * 2 @@ -227,7 +227,7 @@ Latest: {{ with .Version.Latest }}{{ . }}{{ else }}{{ end }} {{ end -}} {{ if not .Version.UpToDate }} Call 'exercism upgrade' to get the latest version. -See the release notes at https://github.com/exercism/cli/releases/tag/{{ .Version.Latest }} for details. +See the release notes at https://github.com/exercism/cli/releases/tag/v{{ .Version.Latest }} for details. {{ end }} Operating System @@ -255,8 +255,8 @@ API Reachability * {{ .Latency }} {{ end }} -If you are having trouble please file a GitHub issue at -https://github.com/exercism/exercism.io/issues and include +If you are having trouble, please create a new topic in the Exercism forum +at https://forum.exercism.org/c/support/cli/10 and include this information. {{ if not .Censor }} Don't share your API key. Keep that private.