mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Reformat long_options now that travis matches
This commit is contained in:
parent
f401b49b1a
commit
a27e741beb
@ -108,14 +108,12 @@ int main(int argc, char *argv[])
|
|||||||
int opt = 0;
|
int opt = 0;
|
||||||
|
|
||||||
/* Options struct for getopt_long */
|
/* Options struct for getopt_long */
|
||||||
static struct option long_options[] = { { "daemonize", no_argument, 0, 'd' },
|
static struct option long_options[] = {
|
||||||
{ "log-to-syslog", no_argument, 0, 'l' },
|
{ "daemonize", no_argument, 0, 'd' }, { "log-to-syslog", no_argument, 0, 'l' },
|
||||||
{ "request", optional_argument, 0, 'r' },
|
{ "request", optional_argument, 0, 'r' }, { "test", no_argument, 0, 't' },
|
||||||
{ "test", no_argument, 0, 't' },
|
{ "status", optional_argument, 0, 's' }, { "help", no_argument, 0, 'h' },
|
||||||
{ "status", optional_argument, 0, 's' },
|
{ "version", no_argument, 0, 'v' }, { NULL, 0, NULL, 0 },
|
||||||
{ "help", no_argument, 0, 'h' },
|
};
|
||||||
{ "version", no_argument, 0, 'v' },
|
|
||||||
{ NULL, 0, NULL, 0 }, };
|
|
||||||
static const char *short_options = "dls::r::tvh";
|
static const char *short_options = "dls::r::tvh";
|
||||||
|
|
||||||
while ((opt = getopt_long(argc, argv, short_options, long_options, 0)) != -1) {
|
while ((opt = getopt_long(argc, argv, short_options, long_options, 0)) != -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user