|
|
2420c2 |
#include "toksvc_driver_impl.h"
|
|
|
2420c2 |
#include "argv/argv.h"
|
|
|
2420c2 |
|
|
|
2420c2 |
const struct argv_option toks_default_options[] = {
|
|
|
2420c2 |
{"version", 'v',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0,
|
|
|
2420c2 |
"show version information"},
|
|
|
2420c2 |
|
|
|
2420c2 |
{"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0,
|
|
|
2420c2 |
"show usage information [listing %s options only]"},
|
|
|
2420c2 |
|
|
|
2420c2 |
{"sysroot", 0,TAG_SYSROOT,ARGV_OPTARG_REQUIRED,0,0,"<dir>",
|
|
|
2420c2 |
"pass a handle to %s to the spawned child process, "
|
|
|
2420c2 |
"and set it to be the child's intial root directory."},
|
|
|
2420c2 |
|
|
|
2420c2 |
{"daemon", 0,TAG_DAEMON,ARGV_OPTARG_OPTIONAL,0,"default|always|never",0,
|
|
|
618937 |
"have the service's daemon thread handle signals sent by the "
|
|
|
618937 |
"application's own controlling terminal. The default is for "
|
|
|
618937 |
"the daemon thread to handle signals when the service runs as "
|
|
|
618937 |
"a stand-alone program, and defer the task to the main utility "
|
|
|
618937 |
"in all other cases."},
|
|
|
618937 |
|
|
|
618937 |
{"uuid", 'u',TAG_UUID,ARGV_OPTARG_REQUIRED,0,0,"<uuid>",
|
|
|
618937 |
"set the service identifier to %s."},
|
|
|
2420c2 |
|
|
|
486fcd |
{"connect", 'c',TAG_CONNECT,ARGV_OPTARG_NONE,0,0,0,
|
|
|
486fcd |
"connect to the server without placing any request"},
|
|
|
486fcd |
|
|
|
2420c2 |
{0,0,0,0,0,0,0,0}
|
|
|
2420c2 |
};
|