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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user