Browse Source

Switch to spf13's pflag fork

This fork supports --flag foo as well as --flag=foo.

Closes #30
Martin Hebnes Pedersen 3 years ago
parent
commit
7ba0bc91c7
3 changed files with 9 additions and 5 deletions
  1. 5 1
      flags.go
  2. 2 2
      main.go
  3. 2 2
      rmslist.go

+ 5 - 1
flags.go

@@ -1,3 +1,7 @@
+// Copyright 2016 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
+// Use of this source code is governed by the MIT-license that can be
+// found in the LICENSE file.
+
 package main
 
 import (
@@ -5,7 +9,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/ogier/pflag"
+	"github.com/spf13/pflag"
 )
 
 var ErrNoCmd = fmt.Errorf("No CMD")

+ 2 - 2
main.go

@@ -1,4 +1,4 @@
-// Copyright 2015 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
+// Copyright 2016 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
 // Use of this source code is governed by the MIT-license that can be
 // found in the LICENSE file.
 
@@ -22,7 +22,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/ogier/pflag"
+	"github.com/spf13/pflag"
 
 	"github.com/la5nta/wl2k-go/catalog"
 	"github.com/la5nta/wl2k-go/fbb"

+ 2 - 2
rmslist.go

@@ -1,4 +1,4 @@
-// Copyright 2015 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
+// Copyright 2016 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
 // Use of this source code is governed by the MIT-license that can be
 // found in the LICENSE file.
 
@@ -16,7 +16,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/ogier/pflag"
+	"github.com/spf13/pflag"
 
 	"github.com/la5nta/wl2k-go/mailbox"
 )