Skip to content

Commit 41ed6f8

Browse files
committed
🐛 Fix invalid flag on generated docs
1 parent 74e7664 commit 41ed6f8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

docs/yampl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ yampl [-i] [-p prefix] [-v key=value ...] [file ...]
99
### Options
1010

1111
```
12+
--completion string Output command-line completion code for the specified shell. Can be 'bash', 'zsh', 'fish', or 'powershell'.
1213
-C, --directory string dir to hold the generated config (default "./docs")
1314
-h, --help help for yampl
1415
-i, --inline Edit files in-place

internal/cmd/docs/main.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@ package main
33
import (
44
"github.com/clevyr/go-yampl/cmd"
55
"github.com/spf13/cobra/doc"
6-
flag "github.com/spf13/pflag"
76
"log"
87
"os"
9-
"path/filepath"
108
)
119

1210
func main() {
13-
var output string
14-
flag.StringVarP(&output, "directory", "C", "./docs", "dir to hold the generated config")
15-
flag.Parse()
16-
1711
var err error
18-
19-
output = filepath.Join(".", filepath.Join("/", output))
12+
output := "./docs"
2013
log.Println(`generating docs in "` + output + `"`)
2114

2215
log.Println("removing existing directory")

0 commit comments

Comments
 (0)