You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b536460
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: cmd/swarm/main.go
+94Lines changed: 94 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,18 @@ var (
182
182
Usage: "Number of recent chunks cached in memory (default 5000)",
183
183
EnvVar: SWARM_ENV_STORE_CACHE_CAPACITY,
184
184
}
185
+
SwarmResourceMultihashFlag= cli.BoolFlag{
186
+
Name: "multihash",
187
+
Usage: "Determines how to interpret data for a resource update. If not present, data will be interpreted as raw, literal data that will be included in the resource",
188
+
}
189
+
SwarmResourceNameFlag= cli.StringFlag{
190
+
Name: "name",
191
+
Usage: "User-defined name for the new resource",
192
+
}
193
+
SwarmResourceDataOnCreateFlag= cli.StringFlag{
194
+
Name: "data",
195
+
Usage: "Initializes the resource with the given hex-encoded data. Data must be prefixed by 0x",
196
+
}
185
197
)
186
198
187
199
//declare a few constant error messages, useful for later error check comparisons in test
@@ -190,6 +202,15 @@ var (
190
202
SWARM_ERR_SWAP_SET_NO_API="SWAP is enabled but --swap-api is not set"
191
203
)
192
204
205
+
// this help command gets added to any subcommand that does not define it explicitly
0 commit comments