aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/upload.go b/weed/command/upload.go
index 1f0696f70..d7a468610 100644
--- a/weed/command/upload.go
+++ b/weed/command/upload.go
@@ -63,7 +63,7 @@ var cmdUpload = &Command{
func runUpload(cmd *Command, args []string) bool {
secret := security.Secret(*upload.secretKey)
- if len(cmdUpload.Flag.Args()) == 0 {
+ if len(args) == 0 {
if *upload.dir == "" {
return false
}