Skip to content
Snippets Groups Projects
Unverified Commit 4d77fd5e authored by Jess's avatar Jess Committed by GitHub
Browse files

Merge pull request #88 from hausdorff/proto-help

:sos: Add `--help` flag to `generate` and `prototype use`
parents aa6fa1d2 f89d6042
No related branches found
No related tags found
No related merge requests found
......@@ -333,6 +333,10 @@ var prototypeUseCmd = &cobra.Command{
Short: `Expand prototype, place in components/ directory of ksonnet app`,
DisableFlagParsing: true,
RunE: func(cmd *cobra.Command, rawArgs []string) error {
if len(rawArgs) == 1 && (rawArgs[0] == "--help" || rawArgs[0] == "-h") {
return cmd.Help()
}
cwd, err := os.Getwd()
if err != nil {
return err
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment