Skip to content

Commit

Permalink
#869 access member variables directly instead of going through theArC…
Browse files Browse the repository at this point in the history
…onfig() when possible

- construct ArgConfig early in each Runtime instance
- do not use theArgConfig() access function from within ArgConfig and Runtime instances
- disable debug printing that happens before theArgConfig is ready
  • Loading branch information
cz4rs committed Jul 18, 2020
1 parent 474c102 commit 82b28a0
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 170 deletions.
7 changes: 0 additions & 7 deletions src/vt/configs/arguments/argparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ namespace vt { namespace arguments {

struct ArgParse {

/// Parse the arguments into ArgConfig.
/// Re-assigns argc/argv to remove consumed arguments.
/// On success the tuple will be {-1, ""}. Otherwise the exit code
/// (which may be 0 if help was requested) will be returned along
/// with an appropriate display message.
static std::tuple<int, std::string> parse(int& argc, char**& argv);

private:
static bool parsed_;
};
Expand Down
Loading

0 comments on commit 82b28a0

Please sign in to comment.