diff --git a/main.go b/main.go index 00fa9e2..f2d4fae 100644 --- a/main.go +++ b/main.go @@ -47,6 +47,11 @@ func handleCreateCommand(args []string) { flagSet.StringVar(&projectPath, "p", "", "Path to the new project") flagSet.Parse(args) + if projectPath == "" { + log.Printf("Error: -p flag is required\n") + os.Exit(1) + } + err = handleRemoteTemplate(template, branch, projectPath) if err != nil { log.Printf("Error creating project: %s\n", err)