summaryrefslogtreecommitdiff
path: root/tools/restore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/restore.cpp')
-rw-r--r--tools/restore.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/restore.cpp b/tools/restore.cpp
index 4001e65da94..ddb075ea890 100644
--- a/tools/restore.cpp
+++ b/tools/restore.cpp
@@ -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(){