Skip to content

Commit 640d305

Browse files
committed
simplify logging
1 parent 3bf13c8 commit 640d305

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cppp.ggo

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ args "--unamed-opts"
55

66
# Options
77
option "output" o "Output file" string typestr="filename"
8-
option "quiet" q "Output only the result" flag off
9-
option "log" l "Log file (default=stderr)" string typestr="filename" optional
108
option "strategy" s "Strategy" int optional
9+
option "quiet" q "Output only the result" flag off
10+
option "verbose" v "Logs some information" flag off
11+
option "debug" d "Detailed log for debugging" flag off
1112
details="\n
1213
The id code of the strategy used in selecting the next character to be realized,
1314
according to the following table:\n

src/cppp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
int main(int argc, char **argv) {
2828
static struct gengetopt_args_info args_info;
29-
assert(cmdline_parser (argc, argv, &args_info) == 0);
29+
assert(cmdline_parser(argc, argv, &args_info) == 0);
3030
assert(args_info.inputs_num >= 1);
31-
start_logging(args_info.quiet_given, args_info.log_given, args_info.log_arg);
31+
start_logging(args_info);
3232

3333
igraph_i_set_attribute_table(&igraph_cattribute_table);
3434
pp_instance temp = read_instance_from_filename(args_info.inputs[0]);

0 commit comments

Comments
 (0)