mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 00:37:01 +00:00
output: add json format support
Reviewed-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Gilles Bouthenot <gilles.bouthenot@univ-fcomte.fr>
This commit is contained in:
parent
179e2ac147
commit
a302bc6829
7 changed files with 156 additions and 5 deletions
|
|
@ -219,13 +219,16 @@ This is ISC dhcpd pools usage analyzer.\n\
|
|||
\n", program_invocation_short_name);
|
||||
fprintf(out, "\
|
||||
-c, --config=FILE path to the dhcpd.conf file\n\
|
||||
-l, --leases=FILE path to the dhcpd.leases file\n\
|
||||
-f, --format=[thHcxX] output format\n\
|
||||
-l, --leases=FILE path to the dhcpd.leases file\n");
|
||||
fprintf(out, "\
|
||||
-f, --format=[thHcxXjJ] output format\n\
|
||||
t for text\n\
|
||||
h for html table\n\
|
||||
H for full html page\n\
|
||||
x for xml\n\
|
||||
X for xml with active lease details\n\
|
||||
j for json\n\
|
||||
J for json with active lease details\n\
|
||||
c for comma separated values\n");
|
||||
fprintf(out, "\
|
||||
-s, --sort=[nimcptTe] sort ranges by\n\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue