1
0
mirror of https://github.com/go-task/task.git synced 2025-11-29 22:48:03 +02:00

feat: warn about move from any variables to map variables (#1618)

This commit is contained in:
Pete Davison
2024-04-24 21:40:52 +01:00
committed by GitHub
parent a5b949f5dc
commit ddd9964db7
4 changed files with 22 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ package flags
import (
"errors"
"log"
"os"
"time"
"github.com/spf13/pflag"
@@ -68,6 +69,8 @@ var (
)
func init() {
log.SetFlags(0)
log.SetOutput(os.Stderr)
pflag.Usage = func() {
log.Print(usage)
pflag.PrintDefaults()