Commit 3493e33e authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

fix(2/version) option value sig

parent 7c752271
...@@ -27,7 +27,13 @@ var versionCmd = &cmds.Command{ ...@@ -27,7 +27,13 @@ var versionCmd = &cmds.Command{
v := res.Output().(*VersionOutput) v := res.Output().(*VersionOutput)
s := "" s := ""
number, _ := res.Request().Option("number").Bool() number, found, err := res.Request().Option("number").Bool()
if err != nil {
return nil, err
}
if !found {
number = false
}
if !number { if !number {
s += "ipfs version " s += "ipfs version "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment