Use pflag for gnu style flags

This commit is contained in:
Nick Craig-Wood
2014-03-27 16:55:29 +00:00
parent 4990535d1b
commit a628bef9c2
3 changed files with 21 additions and 20 deletions
+2 -2
View File
@@ -17,7 +17,6 @@ package drive
import (
"encoding/json"
"flag"
"fmt"
"io"
"log"
@@ -31,6 +30,7 @@ import (
"code.google.com/p/goauth2/oauth"
"code.google.com/p/google-api-go-client/drive/v2"
"github.com/ncw/rclone/fs"
"github.com/ogier/pflag"
)
// Constants
@@ -43,7 +43,7 @@ const (
// Globals
var (
// Flags
driveFullList = flag.Bool("drive-full-list", true, "Use a full listing for directory list. More data but usually quicker.")
driveFullList = pflag.BoolP("drive-full-list", "", true, "Use a full listing for directory list. More data but usually quicker.")
)
// Register with Fs