iptogeo/src/cmdline.ggo

19 lines
881 B
Plaintext
Raw Normal View History

2016-01-31 11:42:28 +01:00
package "ip_to_geo"
version "0.1"
purpose "Convert an IP to country code"
usage "ip_to_geo --ip <ipv4>|--daemon [--port <port>] [--bind-ip <ip>]"
description "Convert an IP to country code. Currently, onyl IPv4 supported"
section "Interactive mode"
option "ip" i "IP to convert" typestr="ip" string optional
option "quiet" q "Quiet mode" flag off
option "verbose" v "Verbose mode" flag off
section "Daemon mode"
option "daemon" D "Daemonize" flag off
option "port" p "Port" default="53333" int optional
option "bind-ip" b "IP to bind to" string optional
section "Advanced daemon options"
option "sockets-per-thread" s "Number of sockets managed by a single thread" default="10" int optional
option "sockets-timeout" t "Close connection after X seconds" default="5" int optional
2016-01-31 11:49:24 +01:00
option "client-max-requests" r "Number of requests allowed for one client" default="100" int optional