Skip to content

Commit

Permalink
Merge pull request google#1033 from antmicro:Fix_SetProgramUsageMessage
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 542043456
  • Loading branch information
copybara-github committed Jun 20, 2023
2 parents fbfe510 + b46757d commit 672ad6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xls/common/init_xls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@
#include <vector>

#include "absl/flags/parse.h"
#include "absl/flags/usage.h"
#include "xls/common/file/get_runfile_path.h"
#include "xls/common/logging/logging.h"

namespace xls {

std::vector<std::string_view> InitXls(std::string_view usage, int argc,
char* argv[]) {
// Comply with xls/common/init_xls.h:32
absl::SetProgramUsageMessage(usage);
// Copy the argv array to ensure this method doesn't clobber argv.
std::vector<char*> arguments(argv, argv + argc);
std::vector<char*> remaining = absl::ParseCommandLine(argc, argv);
Expand Down

0 comments on commit 672ad6e

Please sign in to comment.