1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

refactor: newlines after break

This commit is contained in:
Steffen Vogel 2018-08-27 11:23:21 +02:00
parent 7f4e69ea4b
commit ebec998b3e
5 changed files with 21 additions and 0 deletions

View file

@ -57,12 +57,15 @@ int main(int argc, char *argv[])
case 'V':
print_version();
exit(EXIT_SUCCESS);
case 'i':
input_format = optarg;
break;
case 'o':
output_format = optarg;
break;
case 'd':
level = strtoul(optarg, &endptr, 10);
goto check;

View file

@ -117,6 +117,7 @@ int main(int argc, char *argv[])
case 'V':
print_version();
exit(EXIT_SUCCESS);
case 'h':
case '?':
usage();

View file

@ -259,27 +259,35 @@ int main(int argc, char *argv[])
case 'V':
print_version();
exit(EXIT_SUCCESS);
case 'f':
format = optarg;
break;
case 'x':
reverse = true;
break;
case 's':
recvv.enabled = false; // send only
break;
case 'r':
sendd.enabled = false; // receive only
break;
case 'l':
recvv.limit = strtoul(optarg, &endptr, 10);
goto check;
case 'L':
sendd.limit = strtoul(optarg, &endptr, 10);
goto check;
case 't':
timeout = strtoul(optarg, &endptr, 10);
goto check;
case 'o':
ret = json_object_extend_str(cfg_cli, optarg);
if (ret)

View file

@ -86,18 +86,23 @@ int main(int argc, char *argv[])
case 'e':
epsilon = strtod(optarg, &endptr);
goto check;
case 'v':
flags &= ~SAMPLE_HAS_DATA;
break;
case 't':
flags &= ~SAMPLE_HAS_TS_ORIGIN;
break;
case 's':
flags &= ~SAMPLE_HAS_SEQUENCE;
break;
case 'f':
format = optarg;
break;
case 'V':
print_version();
exit(EXIT_SUCCESS);

View file

@ -96,15 +96,19 @@ int main(int argc, char *argv[])
case 'c':
count = strtoul(optarg, &endptr, 10);
goto check;
case 'f':
fd = strtoul(optarg, &endptr, 10);
goto check;
case 'w':
hist_warmup = strtoul(optarg, &endptr, 10);
goto check;
case 'b':
hist_buckets = strtoul(optarg, &endptr, 10);
goto check;
case 'V':
print_version();
exit(EXIT_SUCCESS);