@@ -76,7 +76,7 @@ You can now refer to the added file in a gateway, like so:
76
76
cmds .BoolOption (wrapOptionName , "w" , "Wrap files with a directory object." ),
77
77
cmds .BoolOption (hiddenOptionName , "H" , "Include files that are hidden. Only takes effect on recursive add." ),
78
78
cmds .StringOption (chunkerOptionName , "s" , "Chunking algorithm to use." ),
79
- cmds .BoolOption (pinOptionName , "Pin this object when adding. Default: true." ),
79
+ cmds .BoolOption (pinOptionName , "Pin this object when adding." ). Default ( true ),
80
80
cmds .BoolOption (rawLeavesOptionName , "Use raw blocks for leaf nodes. (experimental)" ),
81
81
},
82
82
PreRun : func (req cmds.Request ) error {
@@ -135,13 +135,9 @@ You can now refer to the added file in a gateway, like so:
135
135
hidden , _ , _ := req .Option (hiddenOptionName ).Bool ()
136
136
silent , _ , _ := req .Option (silentOptionName ).Bool ()
137
137
chunker , _ , _ := req .Option (chunkerOptionName ).String ()
138
- dopin , pin_found , _ := req .Option (pinOptionName ).Bool ()
138
+ dopin , _ , _ := req .Option (pinOptionName ).Bool ()
139
139
rawblks , _ , _ := req .Option (rawLeavesOptionName ).Bool ()
140
140
141
- if ! pin_found { // default
142
- dopin = true
143
- }
144
-
145
141
if hash {
146
142
nilnode , err := core .NewNode (n .Context (), & core.BuildCfg {
147
143
//TODO: need this to be true or all files
0 commit comments