From ceb7a56ce75272144dbdccc52a45cead8ba0ae91 Mon Sep 17 00:00:00 2001 From: CJ Carey Date: Wed, 5 Feb 2014 14:55:48 -0500 Subject: [PATCH 1/2] adding a warning about binary files --- src/BMatchingSolver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BMatchingSolver.cpp b/src/BMatchingSolver.cpp index 9f30c02..1216cf0 100644 --- a/src/BMatchingSolver.cpp +++ b/src/BMatchingSolver.cpp @@ -235,6 +235,9 @@ int main(int argc, char ** argv) { (n == 0)) { cout << "Invalid options. Exiting..." << endl; return -1; + } else if (binary == 1) { + cout << "Error: Binary input files are unsupported." << endl; + return -1; } SparseMatrix * solution = 0; From d09258d543138e094b16530df2eda7744e8bde20 Mon Sep 17 00:00:00 2001 From: CJ Carey Date: Wed, 5 Feb 2014 14:55:59 -0500 Subject: [PATCH 2/2] enabling the short option (-B) --- src/BMatchingSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BMatchingSolver.cpp b/src/BMatchingSolver.cpp index 1216cf0..33e30eb 100644 --- a/src/BMatchingSolver.cpp +++ b/src/BMatchingSolver.cpp @@ -158,7 +158,7 @@ int main(int argc, char ** argv) { /* getopt_long stores the option index here. */ int option_index = 0; - c = getopt_long (argc, argv, "w:d:x:n:b:t:i:o:D:Tc:v", + c = getopt_long (argc, argv, "w:d:x:n:b:t:i:o:D:Tc:vB", long_options, &option_index); /* Detect the end of the options. */