diff options
author | Steven Noonan <steven@uplinklabs.net> | 2016-05-16 10:12:57 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2016-05-16 10:12:57 -0700 |
commit | 6da4907ea8ac008195d274e4c3c4746abd8b6647 (patch) | |
tree | f51a550bc334caa4de20fc669d75540096694ced /src/experiment.cpp | |
parent | 27edb9b203a7b2768a526bbb6a436ba89f4c2f92 (diff) |
parse_rags: return '1' when given --help
Otherwise it tries to run with a bogus set of values, causing a segfault.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'src/experiment.cpp')
-rw-r--r-- | src/experiment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/experiment.cpp b/src/experiment.cpp index d965e39..7551d1f 100644 --- a/src/experiment.cpp +++ b/src/experiment.cpp @@ -447,7 +447,7 @@ int Experiment::parse_args(int argc, char* argv[]) { printf("Final note: strict is not yet fully implemented, and\n"); printf("maps do not gracefully handle ill-formed map specifications.\n"); - return 0; + return 1; } |