Skip to content

Commit

Permalink
Linux fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dfranx committed Apr 17, 2020
1 parent c223cc8 commit 14c9581
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/SHADERed/Objects/CommandLineOptionParser.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <SHADERed/Objects/CommandLineOptionParser.h>
#include <string.h>
#include <filesystem>
#include <vector>

namespace ed {
CommandLineOptionParser::CommandLineOptionParser()
Expand Down Expand Up @@ -60,14 +62,14 @@ namespace ed {
{ "--maxmimized | -max", "maximize SHADERed's window" },
{ "--performance | -p", "launch SHADERed in performance mode" },
};

int maxSize = 0;
for (const auto& opt : opts)
maxSize = std::max<int>(opt.first.size(), maxSize);

for (const auto& opt : opts)
printf("\t%s%*s - %s\n", opt.first.c_str(), maxSize - opt.first.size(), "", opt.second.c_str());

LaunchUI = false;
}
// file path
Expand Down

0 comments on commit 14c9581

Please sign in to comment.