Skip to content

Commit

Permalink
patch for rogue-less builds of pftool
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeichlersmith committed Mar 11, 2022
1 parent 0b9d3e4 commit bdb4a6c
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions tool/pftool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,7 @@ int main(int argc, char* argv[]) {
std::vector<std::string> hostnames;
for (int i = 1 ; i < argc ; i++) {
std::string arg(argv[i]);
#ifdef PFTOOL_UHAL
#ifdef PFTOOL_ROGUE
if (arg=="-u") {
isuhal = true;
isrogue = false;
}
else if (arg=="-r") {
isrogue = true;
isuhal = false;
}
#endif
#endif
else if (arg=="-s") {
if (arg=="-s") {
if (i+1 == argc or argv[i+1][0] == '-') {
std::cerr << "Argument " << arg << " requires a file after it." << std::endl;
return 2;
Expand All @@ -151,7 +139,20 @@ int main(int argc, char* argv[]) {
BaseMenu::add_to_command_queue(line);
}
sFile.close() ;
} else {
}
#ifdef PFTOOL_UHAL
#ifdef PFTOOL_ROGUE
else if (arg=="-u") {
isuhal = true;
isrogue = false;
}
else if (arg=="-r") {
isrogue = true;
isuhal = false;
}
#endif
#endif
else {
// positional argument -> hostname
hostnames.push_back( arg ) ;
}
Expand Down

0 comments on commit bdb4a6c

Please sign in to comment.