Skip to content
Snippets Groups Projects
Commit 85fb4028 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

cleaning up thanos plugin interface

parent d35cc8cd
No related branches found
No related tags found
No related merge requests found
...@@ -55,23 +55,26 @@ int parseArgs(const vector<string> step_args) ...@@ -55,23 +55,26 @@ int parseArgs(const vector<string> step_args)
auto argv = vector<char*>(); auto argv = vector<char*>();
transform(ALLOF(step_args), back_inserter(argv), [](const string &s) -> char* { return const_cast<char*>(s.c_str()); } ); transform(ALLOF(step_args), back_inserter(argv), [](const string &s) -> char* { return const_cast<char*>(s.c_str()); } );
const auto argc = step_args.size(); const auto argc = step_args.size();
auto strtolError = (char*) nullptr;
/* /*
* Check that we've been called correctly: * Check that we've been called correctly:
* <program> <variant id> <annotation file> * <program> <variant id> <annotation file>
*/ */
#if 0
if(argc < 1) if(argc < 1)
{ {
usage(programName); usage(programName);
return 2; return 2;
} }
#endif
#if 0
variantID = strtol(step_args[0].c_str(), &strtolError, 10); variantID = strtol(step_args[0].c_str(), &strtolError, 10);
if (*strtolError != '\0') if (*strtolError != '\0')
{ {
cerr << "Invalid variantID: " << step_args[0] << endl; cerr << "Invalid variantID: " << step_args[0] << endl;
return 1; return 1;
} }
#endif
// Parse some options for the transform // Parse some options for the transform
const static struct option long_options[] = { const static struct option long_options[] = {
...@@ -144,8 +147,10 @@ int parseArgs(const vector<string> step_args) ...@@ -144,8 +147,10 @@ int parseArgs(const vector<string> step_args)
} }
int executeStep(IRDBObjects_t *const irdb_objects) int executeStep()
{ {
variantID=getVariantID();
auto irdb_objects=getIRDBObjects();
auto exit_code = (int) 0; auto exit_code = (int) 0;
......
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