1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-05-19 09:50:08 +02:00

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

This commit is contained in:
bingoohuang 2021-02-20 16:52:57 +08:00
parent f69356f589
commit 50df484d86
4 changed files with 1151 additions and 3 deletions

View file

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

View file

@ -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 Normal file

File diff suppressed because it is too large Load diff

View file

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