* clixon_restconf and clixon_netconf now take -D <level> as command-line option\
instead of just -D * This aligns to clixon_cli and clixon_backend
This commit is contained in:
parent
10ada483e5
commit
7c94991fe9
10 changed files with 18 additions and 14 deletions
|
|
@ -296,7 +296,7 @@ usage(clicon_handle h,
|
|||
fprintf(stderr, "usage:%s\n"
|
||||
"where options are\n"
|
||||
"\t-h\t\tHelp\n"
|
||||
"\t-D\t\tDebug\n"
|
||||
"\t-D <level>\tDebug level\n"
|
||||
"\t-q\t\tQuiet: dont send hello prompt\n"
|
||||
"\t-f <file>\tConfiguration file (mandatory)\n"
|
||||
"\t-l <e|o|s|f<file>> \tLog on std(e)rr, std(o)ut, (s)yslog, (f)ile (syslog is default)\n"
|
||||
|
|
@ -345,7 +345,8 @@ main(int argc,
|
|||
usage(h, argv[0]);
|
||||
break;
|
||||
case 'D' : /* debug */
|
||||
debug = 1;
|
||||
if (sscanf(optarg, "%d", &debug) != 1)
|
||||
usage(h, argv[0]);
|
||||
break;
|
||||
case 'f': /* override config file */
|
||||
if (!strlen(optarg))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue