Skip to content

Commit

Permalink
tidy: remove comment from generated code (intended just for template)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverusso committed May 19, 2024
1 parent 2347a38 commit 54f2600
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions clap.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ func (cc *clapCommand) parse(args []string) ([]string, error) {
return nil, err
}

// TODO(steve): check for missing required flags when supported

rest := f.Args()

if len(cc.args) > 0 {
Expand Down
2 changes: 0 additions & 2 deletions examples/posargs/clap.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ func (cc *clapCommand) parse(args []string) ([]string, error) {
return nil, err
}

// TODO(steve): check for missing required flags when supported

rest := f.Args()

if len(cc.args) > 0 {
Expand Down
2 changes: 0 additions & 2 deletions examples/simple/clap.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ func (cc *clapCommand) parse(args []string) ([]string, error) {
return nil, err
}

// TODO(steve): check for missing required flags when supported

rest := f.Args()

if len(cc.args) > 0 {
Expand Down
2 changes: 0 additions & 2 deletions examples/simple_env/clap.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ func (cc *clapCommand) parse(args []string) ([]string, error) {
return nil, err
}

// TODO(steve): check for missing required flags when supported

rest := f.Args()

if len(cc.args) > 0 {
Expand Down
2 changes: 0 additions & 2 deletions examples/strops/clap.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ func (cc *clapCommand) parse(args []string) ([]string, error) {
return nil, err
}

// TODO(steve): check for missing required flags when supported

rest := f.Args()

if len(cc.args) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion tmpls/base-unexported.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (cc *clapCommand) parse(args []string) ([]string, error) {
return nil, err
}

// TODO(steve): check for missing required flags when supported
{{- /* TODO(steve): check for missing required flags when supported*/}}

rest := f.Args()

Expand Down

0 comments on commit 54f2600

Please sign in to comment.