Skip to content

Commit 124e74b

Browse files
ElestriasMarkuu-s
authored andcommitted
Client fixes
Signed-off-by: elestrias <[email protected]>
1 parent 621d96e commit 124e74b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

core/cli/node/client.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace fc::cli::_node {
2020
boost::filesystem::path path;
2121
std::string provider;
2222
bool car{};
23+
std::string root;
2324

2425
CLI_OPTS() {
2526
Opts opts;
@@ -39,12 +40,14 @@ namespace fc::cli::_node {
3940
option("car",
4041
po::bool_switch(&car),
4142
"store result of retrieval deal to car file");
43+
option("root-CID", po::value(&root), "Specifies root CID for retrieval deal");
4244
return opts;
4345
}
4446
};
4547

4648
CLI_RUN() {
4749
Node::Api api{argm};
50+
CLI_TRY_TEXT(root, CID::fromString(args.root), "Invalid root CID: " + args.root);
4851
CLI_TRY_TEXT(cid,
4952
CID::fromString(args.piece_cid),
5053
"Invalid piece CID: " + args.piece_cid)
@@ -118,6 +121,23 @@ namespace fc::cli::_node {
118121
}
119122
};
120123

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+
121141

122142

123143
} // namespace fc::cli::_node

0 commit comments

Comments
 (0)