migrate fix command

git-svn-id: https://weed-fs.googlecode.com/svn/trunk@63 282b0af5-e82d-9cf1-ede4-77906d7719d0
This commit is contained in:
chris.lu@gmail.com
2012-08-07 01:20:26 +00:00
parent 51860424a6
commit 3f1136c194
4 changed files with 86 additions and 48 deletions

View File

@@ -1,7 +1,3 @@
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
@@ -16,10 +12,11 @@ var cmdVersion = &Command{
Long: `Version prints the Weed File System version`,
}
func runVersion(cmd *Command, args []string) {
func runVersion(cmd *Command, args []string) bool{
if len(args) != 0 {
cmd.Usage()
}
fmt.Printf("version 0.15 %s %s\n",runtime.GOOS, runtime.GOARCH)
return true
}