mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
make restore directory a positional argument
This commit is contained in:
parent
ee9b2ea7ea
commit
a4d00f78d3
@ -32,9 +32,14 @@ namespace po = boost::program_options;
|
|||||||
class Restore : public Tool {
|
class Restore : public Tool {
|
||||||
public:
|
public:
|
||||||
Restore() : Tool( "restore" , "" ){
|
Restore() : Tool( "restore" , "" ){
|
||||||
add_options()
|
add_hidden_options()
|
||||||
("dir", po::value<string>()->default_value("dump"), "directory to restore from")
|
("dir", po::value<string>()->default_value("dump"), "directory to restore from")
|
||||||
;
|
;
|
||||||
|
addPositionArg("dir", 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void printExtraHelp(ostream& out) {
|
||||||
|
out << "usage: " << _name << " [options] [directory or filename to restore from]" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
int run(){
|
int run(){
|
||||||
|
Loading…
Reference in New Issue
Block a user