diff --git a/xCAT-client/sbin/dumpxCATdb b/xCAT-client/sbin/dumpxCATdb index a140f8fc8..db5b9d583 100644 --- a/xCAT-client/sbin/dumpxCATdb +++ b/xCAT-client/sbin/dumpxCATdb @@ -77,25 +77,26 @@ sub parse_args ) { $usagemsg = - " dumpxCATdb -h \n dumpxCATdb [-p] [path to dump directory]\n"; + " dumpxCATdb -h \n dumpxCATdb -v \n dumpxCATdb [-p] [path to dump directory]\n"; xCAT::MsgUtils->message("E", $usagemsg); exit 1; } if ($::HELP) { $usagemsg = - " dumpxCATdb -h \n dumpxCATdb [-p] [path to dump directory]\n"; + " dumpxCATdb -h \n dumpxCATdb -v \n dumpxCATdb [-p] [path to dump directory]\n"; xCAT::MsgUtils->message("I", $usagemsg); exit 0; } if ($::VERSION) { - xCAT::MsgUtils->message("I", "Version 2.0\n"); + my $version = xCAT::Utils->Version(); + xCAT::MsgUtils->message("N", $version); exit 0; } if (!($::PATH)) { - my $msg = " -p with path to directory to hold db files.\n"; + my $msg = " Requires -p with path to directory to hold db files.\n"; xCAT::MsgUtils->message("E", $msg); exit 1; } diff --git a/xCAT-client/sbin/restorexCATdb b/xCAT-client/sbin/restorexCATdb index d22da3fa4..a40f2f345 100644 --- a/xCAT-client/sbin/restorexCATdb +++ b/xCAT-client/sbin/restorexCATdb @@ -86,25 +86,27 @@ sub parse_args ) { $usagemsg = - " restorexCATdb -h \n restorexCATdb [-p] [path to restore .csv files]\n"; + " restorexCATdb -h \n restorexCATdb -v \n restorexCATdb [-p] [path to restore .csv files]\n"; xCAT::MsgUtils->message("E", $usagemsg); exit 1; } if ($::HELP) { $usagemsg = - " restorexCATdb -h \n restorexCATdb [-p] [path to restore .csv files]\n"; + " restorexCATdb -h \n restorexCATdb -v \n restorexCATdb [-p] [path to restore .csv files]\n"; xCAT::MsgUtils->message("I", $usagemsg); exit 0; } if ($::VERSION) { - xCAT::MsgUtils->message("I", "Version 2.0\n"); + my $version = xCAT::Utils->Version(); + xCAT::MsgUtils->message("N", $version); + exit 0; } if (!($::PATH)) { - my $msg = " -p with path to place dump files is required \n"; + my $msg = " -p with path to database files is required \n"; xCAT::MsgUtils->message("E", $msg); exit 1; }