Fix composite literal uses unkeyed fields

This commit is contained in:
Ryan Cavicchioni 2021-01-11 20:47:01 -06:00
parent 30fae38ad1
commit 63631be598
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -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)