Skip to content

Commit

Permalink
show help if no args are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Oct 19, 2024
1 parent 20f88fc commit b9ffe4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/replay/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ bool parseArgs(int argc, char *argv[], ReplayConfig &config) {
{"all", REPLAY_FLAG_ALL_SERVICES},
};

if (argc == 1) {
std::cout << helpText;
return false;
}

int opt, option_index = 0;
while ((opt = getopt_long(argc, argv, "a:b:c:s:x:d:p:h", cli_options, &option_index)) != -1) {
switch (opt) {
Expand Down

0 comments on commit b9ffe4f

Please sign in to comment.