Skip to content

Commit 8c7a3c2

Browse files
committed
CL cmdline debugging
1 parent 3c633e2 commit 8c7a3c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/goto-cc/ms_cl_cmdline.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ bool ms_cl_cmdlinet::parse(const std::vector<std::string> &arguments)
5757
{
5858
for(std::size_t i = 0; i < arguments.size(); i++)
5959
{
60+
std::cerr << "ARG " << i << ": " << arguments[i] << std::endl;
6061
// is it a non-cl option?
6162
if(std::string(arguments[i], 0, 2) == "--")
6263
{
@@ -427,6 +428,8 @@ void ms_cl_cmdlinet::process_cl_option(const std::string &s)
427428
return;
428429
}
429430

431+
std::cerr << "cl_option: " << s << std::endl;
432+
430433
for(std::size_t j=0; ms_cl_flags[j]!=nullptr; j++)
431434
{
432435
if(std::string(s, 1, std::string::npos)==ms_cl_flags[j])
@@ -455,6 +458,7 @@ void ms_cl_cmdlinet::process_cl_option(const std::string &s)
455458
optnr=options.size()-1;
456459
}
457460

461+
std::cerr << "Found " << *optnr << std::endl;
458462
options[*optnr].isset=true;
459463
return;
460464
}

0 commit comments

Comments
 (0)