0
0
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:
Mike Dirolf 2009-09-24 12:04:51 -04:00
parent ee9b2ea7ea
commit a4d00f78d3

View File

@ -32,9 +32,14 @@ namespace po = boost::program_options;
class Restore : public Tool {
public:
Restore() : Tool( "restore" , "" ){
add_options()
add_hidden_options()
("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(){