diff options
| author | Fritz Elfert <felfert@to.com> | 2003-02-06 00:42:36 +0000 | 
|---|---|---|
| committer | Fritz Elfert <felfert@to.com> | 2003-02-06 00:42:36 +0000 | 
| commit | 913cba9e01356a49e66e79445db050ff340586d9 (patch) | |
| tree | 0300f0093258ef9082315ea444680bfbb07d32e7 /plpbackup | |
| parent | e78697f80d269a24e3ff7b55929d65a3489409c1 (diff) | |
| download | plptools-913cba9e01356a49e66e79445db050ff340586d9.tar.gz plptools-913cba9e01356a49e66e79445db050ff340586d9.tar.bz2 plptools-913cba9e01356a49e66e79445db050ff340586d9.zip | |
 - plpbackup: Print a message, when no action is specified.
Diffstat (limited to 'plpbackup')
| -rw-r--r-- | plpbackup/plpbackup.cc | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/plpbackup/plpbackup.cc b/plpbackup/plpbackup.cc index 1dde5e6..2e54021 100644 --- a/plpbackup/plpbackup.cc +++ b/plpbackup/plpbackup.cc @@ -1555,6 +1555,10 @@ main(int argc, char **argv)  	cerr << _("Backup can only create one archive at a time.") << endl;  	usage(&cerr);      } +    if (!(doBackup || doRestore || doFormat)) { +	cerr << _("No action specified.") << endl; +	usage(&cerr); +    }      signal(SIGTERM, sig_handler);      signal(SIGINT, sig_handler); | 
