Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#54 Additioal error msgs for plpbackup

None
closed-accepted
Fritz Elfert
interface (2)
5
2014-07-05
2002-12-03
Keita KAWABE
No

Well it's really a trivial thing, but when plpbackup is
run with
neither -r nor -b option, it seems to quit silently.
How about telling something to the users like this?

=======================================================
*** ./plpbackup/plpbackup.cc Mon Aug 5 13:54:22 2002
--- ./plpbackup/plpbackup.new.cc Tue Dec 3
10:27:22 2002
***************
*** 1540,1545 ****
--- 1540,1550 ----
}
driveList.push_back(argv[i]);
}
+ if (!doBackup && !doRestore) {
+ cerr <<_("Either backup (-b) or restore (-r)
option is needed.")
+ << endl;
+ usage(&cerr);
+ }
if (doBackup && (doRestore || doFormat)) {
cerr << _("Backup mode can not be combined with
format or restore.")
<< endl;
=======================================================

Best regards,
Keita

Discussion

  • Fritz Elfert
    Fritz Elfert
    2003-02-06

    Logged In: YES
    user_id=3401

    The logic is wrong.
    You can run plpbackup --format <DRIVE>
    if you want to format a drive only.
    I'll use something similar when none of the 3 actions is specified.

    Thanks
    -Fritz

     
  • Fritz Elfert
    Fritz Elfert
    2003-02-06

    • labels: --> interface
    • assigned_to: nobody --> felfert
    • status: open --> closed-accepted
     
  • Reuben Thomas
    Reuben Thomas
    2014-07-05

    Ticket moved from /p/plptools/patches/9/