Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Fix commandline flags parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
usyed committed Jan 7, 2016
1 parent b8f8895 commit 9c0d5d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# LIB_DIR/include/gtest contains Google Test include files
# LIB_DIR/src contains Google Test source files
# LIB_DIR/lib contains libgflags* and libglog* library files.
LIB_DIR = /home/usyed/googleopensource
LIB_DIR = /usr/local/google/home/usyed/googleopensource

# Where to find user code.
USER_DIR = .
Expand Down
3 changes: 3 additions & 0 deletions driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ void ValidateFlags() {
}

int main(int argc, char** argv) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
google::InitGoogleLogging(argv[0]);

ValidateFlags();

SetSeed(FLAGS_seed);
Expand Down

0 comments on commit 9c0d5d6

Please sign in to comment.