all switching to "weed command [args]" usage mode

git-svn-id: https://weed-fs.googlecode.com/svn/trunk@64 282b0af5-e82d-9cf1-ede4-77906d7719d0
This commit is contained in:
chris.lu@gmail.com
2012-08-07 08:29:22 +00:00
parent 3f1136c194
commit 5e9dc0e668
5 changed files with 412 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import (
func init() {
cmdFix.Run = runFix // break init cycle
IsDebug = cmdFix.Flag.Bool("debug", false, "enable debug mode")
}
var cmdFix = &Command{
@@ -23,9 +24,6 @@ var cmdFix = &Command{
var (
dir = cmdFix.Flag.String("dir", "/tmp", "data directory to store files")
volumeId = cmdFix.Flag.Int("volumeId", -1, "a non-negative volume id. The volume should already exist in the dir. The volume index file should not exist.")
IsDebug = cmdFix.Flag.Bool("debug", false, "enable debug mode")
store *storage.Store
)
func runFix(cmd *Command, args []string) bool {