Skip to content
Snippets Groups Projects
Commit 4e824f4f authored by Lasse Tjernaes Wardenaer's avatar Lasse Tjernaes Wardenaer
Browse files

Resolve "Update Release Notes and small usage changes after changes to cta-verify-file"

parent 9756db2d
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,8 @@
### Features
- cta/CTA#41 - Delete verification_status of tape when tape is reclaimed
- cta/CTA#153 - Allow verification status to be cleared with cta-admin
### Bug fixes
- cta/CTA#173 - Update release notes and small changes to refactoring of operation tools cmd line parsing - Compatible with operations 0.4-95 or later
### Bug fixes
- cta/CTA#161 - Fix bug when using temporary tables with PostgreSQL
# v4.7.12-1
......
......@@ -66,7 +66,7 @@ void fillNotification(cta::eos::Notification &notification, const int argc, char
if(cmdLineArgs.m_help) { cmdLineArgs.printUsage(std::cout); exit(0); }
if(!cmdLineArgs.m_archiveFileId && !cmdLineArgs.m_vid) {
if(!cmdLineArgs.m_archiveFileId || !cmdLineArgs.m_vid) {
cmdLineArgs.printUsage(std::cout);
throw std::runtime_error("ERROR: Usage");
}
......
......@@ -81,22 +81,7 @@ m_help(false), m_debug(false), m_standaloneCliTool{standaloneCliTool} {
opterr = 0;
int opt = 0;
int opt_index;
switch (standaloneCliTool) {
case StandaloneCliTool::RESTORE_FILES:
opt_index = 3;
break;
case StandaloneCliTool::CTA_SEND_EVENT:
opt_index = 3;
break;
case StandaloneCliTool::CTA_VERIFY_FILE:
opt_index = 2;
break;
default:
opt_index = 3;
break;
}
int opt_index = 0;
while ((opt = getopt_long(argc, argv, shortopts[m_standaloneCliTool], longopts[m_standaloneCliTool], &opt_index)) != -1) {
switch(opt) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment