Fix composite literal uses unkeyed fields
This commit is contained in:
parent
30fae38ad1
commit
63631be598
@ -45,7 +45,7 @@ func main() {
|
|||||||
fs := cmd.Flags
|
fs := cmd.Flags
|
||||||
fs.Parse(os.Args[2:])
|
fs.Parse(os.Args[2:])
|
||||||
|
|
||||||
cmdArgs.Flags = lumecmd.Flags{fs}
|
cmdArgs.Flags = lumecmd.Flags{FlagSet: fs}
|
||||||
exitCode, err := cmd.Func(cmdArgs)
|
exitCode, err := cmd.Func(cmdArgs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "fatal: %s\n", err)
|
fmt.Fprintf(os.Stderr, "fatal: %s\n", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user