We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ce248 commit 13d8905Copy full SHA for 13d8905
1 file changed
cmd/open.go
@@ -15,9 +15,13 @@ var openCmd = &cobra.Command{
15
16
Pass the path to the directory that contains the solution you want to see on the website.
17
`,
18
- Args: cobra.ExactArgs(1),
+ Args: cobra.MaximumNArgs(1),
19
RunE: func(cmd *cobra.Command, args []string) error {
20
- metadata, err := workspace.NewExerciseMetadata(args[0])
+ path := "."
21
+ if len(args) == 1 {
22
+ path = args[0]
23
+ }
24
+ metadata, err := workspace.NewExerciseMetadata(path)
25
if err != nil {
26
return err
27
}
0 commit comments