Browse Source

support command line arguments in a configuration file so we can `weed master -config=master.conf`, `weed volume -config=volume.conf` and etc.

pull/1823/head
bingoohuang 4 years ago
parent
commit
50df484d86
  1. 2
      weed/command/command.go
  2. 2
      weed/glog/glog_file.go
  3. 1148
      weed/util/fla9/fla9.go
  4. 2
      weed/weed.go

2
weed/command/command.go

@ -1,8 +1,8 @@
package command
import (
"flag"
"fmt"
flag "github.com/chrislusf/seaweedfs/weed/util/fla9"
"os"
"strings"
)

2
weed/glog/glog_file.go

@ -20,8 +20,8 @@ package glog
import (
"errors"
"flag"
"fmt"
flag "github.com/chrislusf/seaweedfs/weed/util/fla9"
"os"
"os/user"
"path/filepath"

1148
weed/util/fla9/fla9.go
File diff suppressed because it is too large
View File

2
weed/weed.go

@ -4,8 +4,8 @@
package main
import (
"flag"
"fmt"
flag "github.com/chrislusf/seaweedfs/weed/util/fla9"
"io"
"math/rand"
"os"

Loading…
Cancel
Save