@cryptotaxi247 / kubo / commits / fa1c555e2

Added Defaults to `ipfs daemon`

Split from https://github.com/ipfs/go-ipfs/pull/2484. License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

Richard Littauer committed May 10, 2016 at 16:28 UTC fa1c555e292e4d0e3df3a4e6251a3eb63394bfea
1 file changed +10 -10
cmd/ipfs/daemon.go
+10 -10
@@ -126,16 +126,16 @@ future version, along with this notice. Please move to setting the HTTP Headers.
126 },
127
128 Options: []cmds.Option{
129 - cmds.BoolOption(initOptionKwd, "Initialize IPFS with default settings if not already initialized"),
130 - cmds.StringOption(routingOptionKwd, "Overrides the routing option (dht, supernode)"),
131 - cmds.BoolOption(mountKwd, "Mounts IPFS to the filesystem"),
132 - cmds.BoolOption(writableKwd, "Enable writing objects (with POST, PUT and DELETE)"),
133 - cmds.StringOption(ipfsMountKwd, "Path to the mountpoint for IPFS (if using --mount)"),
134 - cmds.StringOption(ipnsMountKwd, "Path to the mountpoint for IPNS (if using --mount)"),
135 - cmds.BoolOption(unrestrictedApiAccessKwd, "Allow API access to unlisted hashes"),
136 - cmds.BoolOption(unencryptTransportKwd, "Disable transport encryption (for debugging protocols)"),
137 - cmds.BoolOption(enableGCKwd, "Enable automatic periodic repo garbage collection"),
138 - cmds.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed"),
129 + cmds.BoolOption(initOptionKwd, "Initialize IPFS with default settings if not already initialized").Default(false),
130 + cmds.StringOption(routingOptionKwd, "Overrides the routing option").Default("dht"),
131 + cmds.BoolOption(mountKwd, "Mounts IPFS to the filesystem").Default(false),
132 + cmds.BoolOption(writableKwd, "Enable writing objects (with POST, PUT and DELETE)").Default(false),
133 + cmds.StringOption(ipfsMountKwd, "Path to the mountpoint for IPFS (if using --mount). Defaults to config setting."),
134 + cmds.StringOption(ipnsMountKwd, "Path to the mountpoint for IPNS (if using --mount). Defaults to config setting."),
135 + cmds.BoolOption(unrestrictedApiAccessKwd, "Allow API access to unlisted hashes").Default(false),
136 + cmds.BoolOption(unencryptTransportKwd, "Disable transport encryption (for debugging protocols)").Default(false),
137 + cmds.BoolOption(enableGCKwd, "Enable automatic periodic repo garbage collection").Default(false),
138 + cmds.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed").Default(false),
139
140 // TODO: add way to override addresses. tricky part: updating the config if also --init.
141 // cmds.StringOption(apiAddrKwd, "Address for the daemon rpc API (overrides config)"),