-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdafka_consumer_step_runner.c
48 lines (43 loc) · 1.42 KB
/
dafka_consumer_step_runner.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* =========================================================================
dafka_consumer_step_runner - description
Copyright (c) the Contributors as noted in the AUTHORS file. This
file is part of DAFKA, a decentralized distributed streaming
platform: http://zeromq.org.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
=========================================================================
*/
/*
@header
dafka_consumer_step_runner -
@discuss
@end
*/
#include "dafka_classes.h"
int main (int argc, char *argv [])
{
bool verbose = false;
int argn;
for (argn = 1; argn < argc; argn++) {
if (streq (argv [argn], "--help")
|| streq (argv [argn], "-h")) {
puts ("dafka_consumer_step_runner [options] ...");
puts (" --verbose / -v verbose test output");
puts (" --help / -h this information");
return 0;
}
else
if (streq (argv [argn], "--verbose")
|| streq (argv [argn], "-v"))
verbose = true;
else {
printf ("Unknown option: %s\n", argv [argn]);
return 1;
}
}
// Insert main code here
if (verbose)
zsys_info ("dafka_consumer_step_runner - ");
return 0;
}