Commit 8bd5ebed authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Renamed onlyFiles to filesOnly.

parent 281f04aa
......@@ -18,7 +18,7 @@ ModListOptions::requested(std::string name)
bool
ModListOptions::modInfoRequested()
{
return (operInfoRequested || printAll || requested(s_obase) || requested(s_arbIn) || requested(s_onlyFiles) || requested(s_onlyFirst)
return (operInfoRequested || printAll || requested(s_obase) || requested(s_arbIn) || requested(s_filesOnly) || requested(s_onlyFirst)
|| requested(s_arbIn) || requested(s_noOutput));
}
......@@ -186,12 +186,12 @@ operatorPrintList(ModListOptions &p_opt)
ModuleQuery hasObase = p_opt.requested(s_obase) ? [](module_t &mod) -> bool { return mod.streamOutCnt == -1; } : defaultModuleQuery;
ModuleQuery hasNoOut = p_opt.requested(s_noOutput) ? [](module_t &mod) -> bool { return mod.streamOutCnt == 0; } : defaultModuleQuery;
ModuleQuery hasArb = p_opt.requested(s_arbIn) ? [](module_t &mod) -> bool { return mod.streamInCnt == -1; } : defaultModuleQuery;
ModuleQuery onlyFiles = p_opt.requested(s_onlyFiles) ? [](module_t &mod) -> bool { return mod.restrictions == FilesOnly; } : defaultModuleQuery;
ModuleQuery filesOnly = p_opt.requested(s_filesOnly) ? [](module_t &mod) -> bool { return mod.restrictions == FilesOnly; } : defaultModuleQuery;
ModuleQuery onlyFirst = p_opt.requested(s_onlyFirst) ? [](module_t &mod) -> bool { return mod.restrictions == OnlyFirst; } : defaultModuleQuery;
// clang-format on
operatorPrintList(
[&](module_t &mod) { return (hasObase(mod) || hasArb(mod) || hasNoOut(mod) || onlyFiles(mod) || onlyFirst(mod)); });
[&](module_t &mod) { return (hasObase(mod) || hasArb(mod) || hasNoOut(mod) || filesOnly(mod) || onlyFirst(mod)); });
}
reset_text_color(stderr);
return;
......
......@@ -9,7 +9,7 @@
const std::string s_obase = "obase";
const std::string s_arbIn = "arbitrary";
const std::string s_onlyFiles = "onlyFiles";
const std::string s_filesOnly = "filesOnly";
const std::string s_onlyFirst = "onlyFirst";
const std::string s_noOutput = "noOutput";
struct ModListOptions
......@@ -17,7 +17,7 @@ struct ModListOptions
bool printAll = false;
bool operInfoRequested = false;
std::map<const std::string, int> opt
= { { s_obase, false }, { s_arbIn, false }, { s_onlyFiles, false }, { s_onlyFirst, false }, { s_noOutput, false } };
= { { s_obase, false }, { s_arbIn, false }, { s_filesOnly, false }, { s_onlyFirst, false }, { s_noOutput, false } };
bool requested(std::string name);
bool modInfoRequested();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment