From 6d371c9532060d1f4487c460dd2640fc68b0f001 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 28 Oct 2013 20:34:39 +0100 Subject: [PATCH] cleanup getopt_long() options --- src/main.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main.c b/src/main.c index c8db6d0f2..f6294d8b4 100644 --- a/src/main.c +++ b/src/main.c @@ -861,19 +861,19 @@ main(int argc, char **argv) for(;;) { static struct option long_options[] = { - {"help", 0, 0, 'h'}, - {"version", 0, 0, 'v'}, - {"batch", 0, 0, 'b'}, - {"autorun", 0, 0, 'a'}, - {"circuitfile", 1, 0, 'c'}, - {"interactive", 0, 0, 'i'}, - {"no-spiceinit", 0, 0, 'n'}, - {"output", 1, 0, 'o'}, - {"pipe", 0, 0, 'p'}, - {"completion", 0, 0, 'q'}, - {"rawfile", 1, 0, 'r'}, - {"server", 0, 0, 's'}, - {"terminal", 1, 0, 't'}, + {"help", no_argument, 0, 'h'}, + {"version", no_argument, 0, 'v'}, + {"batch", no_argument, 0, 'b'}, + {"autorun", no_argument, 0, 'a'}, + {"circuitfile", required_argument, 0, 'c'}, + {"interactive", no_argument, 0, 'i'}, + {"no-spiceinit", no_argument, 0, 'n'}, + {"output", required_argument, 0, 'o'}, + {"pipe", no_argument, 0, 'p'}, + {"completion", no_argument, 0, 'q'}, + {"rawfile", required_argument, 0, 'r'}, + {"server", no_argument, 0, 's'}, + {"terminal", required_argument, 0, 't'}, {0, 0, 0, 0} };