@cryptotaxi247 / kubo / commits / bc396610d

fix(2/daemon) initialized --> init

@jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 17, 2014 at 01:35 UTC bc396610de0c40a117f77076e8c7e22a237410de
1 file changed +4 -4
cmd/ipfs2/daemon.go
+4 -4
@@ -17,7 +17,7 @@ import (
17 )
18
19 const (
20 - initializedOptionKeyword = "initialized"
20 + initOptionKwd = "init"
21 )
22
23 var daemonCmd = &cmds.Command{
@@ -33,7 +33,7 @@ the daemon.
33 },
34
35 Options: []cmds.Option{
36 - cmds.BoolOption(initializedOptionKeyword, "Initialize IPFS with default settings if not already initialized"),
36 + cmds.BoolOption(initOptionKwd, "Initialize IPFS with default settings if not already initialized"),
37 },
38 Subcommands: map[string]*cmds.Command{},
39 Run: daemonFunc,
@@ -41,11 +41,11 @@ the daemon.
41
42 func daemonFunc(req cmds.Request) (interface{}, error) {
43
44 - init, _, err := req.Option(initializedOptionKeyword).Bool()
44 + initialize, _, err := req.Option(initOptionKwd).Bool()
45 if err != nil {
46 return nil, err
47 }
48 - if init {
48 + if initialize {
49
50 // now, FileExists is our best method of detecting whether IPFS is
51 // configured. Consider moving this into a config helper method