AutoGen Definitions options;
prog-name     = occtl;
prog-title    = "OpenConnect VPN server control";
prog-desc     = "OpenConnect VPN server control.";
disable-save;
no-xlate = opt;
gnu-usage;
config-header = config.h;
long-opts;
no-misuse-usage;
short-usage   = "Usage: occtl [options] [command]\nocctl --help for usage instructions.\n";
explain       = "";
#include version.inc

detail  = "Openconnect VPN server control (occtl) is a tool to control
the ocserv VPN server. It uses D-BUS to connect to ocserv.";

copyright = {
    date  = "2014";
    owner = "Red Hat";
    author = "Nikos Mavrogiannopoulos";
    eaddr  = "openconnect-devel@lists.infradead.org";
    type  = gpl;
};

help-value    = h;

flag = {
    name      = socket-file;
    value     = s;
    arg-type  = file;
    descrip   = "Specify the server's occtl socket file";
    doc   = "This option is only needed if you have multiple servers.";
};


doc-section = {
  ds-type = 'SYNOPSIS';
  ds-format = 'texi';
  ds-text   = <<-_EOT_
Openconnect VPN server control (occtl) is a tool to control
the ocserv VPN server. It uses D-BUS to connect to ocserv.
_EOT_;
};

doc-section = {
  ds-type = 'DESCRIPTION';
  ds-format = 'texi';
  ds-text   = <<-_EOT_
This a control tool that can be used to send commands to ocserv. When
called without any arguments the tool can be used interactively, where 
each command is entered on a command prompt; alternatively the tool
can be called with the command specified as parameter. In the latter
case the tool's exit code will reflect the successful execution of
the command.
_EOT_;
};

doc-section = {
  ds-type = 'IMPLEMENTATION NOTES';
  ds-format = 'texi';
  ds-text   = <<-_EOT_
This tool uses D-BUS to connect to ocserv thus the D-BUS access controls
should be used to prevent potentially dangerous commands to be sent
to ocserv by unprivileged users.
_EOT_;
};

doc-section = {
  ds-type   = 'SEE ALSO';
  ds-format = 'man';
  ds-text   = <<-_EOText_
ocserv(8)
_EOText_;
};
