File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ namespace fc::cli::_node {
20
20
boost::filesystem::path path;
21
21
std::string provider;
22
22
bool car{};
23
+ std::string root;
23
24
24
25
CLI_OPTS () {
25
26
Opts opts;
@@ -39,12 +40,14 @@ namespace fc::cli::_node {
39
40
option (" car" ,
40
41
po::bool_switch (&car),
41
42
" store result of retrieval deal to car file" );
43
+ option (" root-CID" , po::value (&root), " Specifies root CID for retrieval deal" );
42
44
return opts;
43
45
}
44
46
};
45
47
46
48
CLI_RUN () {
47
49
Node::Api api{argm};
50
+ CLI_TRY_TEXT (root, CID::fromString (args.root ), " Invalid root CID: " + args.root );
48
51
CLI_TRY_TEXT (cid,
49
52
CID::fromString (args.piece_cid ),
50
53
" Invalid piece CID: " + args.piece_cid )
@@ -118,6 +121,23 @@ namespace fc::cli::_node {
118
121
}
119
122
};
120
123
124
+ struct clientFind {
125
+ struct Args {
126
+
127
+ CLI_OPTS (){
128
+ Opts opts;
129
+ auto option{opts.add_options ()};
130
+
131
+ }
132
+ };
133
+
134
+ };
135
+
136
+
137
+
138
+
139
+
140
+
121
141
122
142
123
143
} // namespace fc::cli::_node
You can’t perform that action at this time.
0 commit comments