From fd5a62ab47962cea4d6ba436c330e44435223dd9 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 30 Mar 2019 09:06:39 +0100 Subject: [PATCH] client: Sort getopt-long like getopt like help message Change-Id: I150bf89c3b0652c860a90d728dc7a6e1d23f2961 --- src/simtrace2-remsim_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simtrace2-remsim_client.c b/src/simtrace2-remsim_client.c index 53f2d33..ca1751c 100644 --- a/src/simtrace2-remsim_client.c +++ b/src/simtrace2-remsim_client.c @@ -711,8 +711,8 @@ static void print_help(void) static const struct option opts[] = { { "server-host", 1, 0, 's' }, { "server-port", 1, 0, 'p' }, - { "gsmtap-ip", 1, 0, 'i' }, { "help", 0, 0, 'h' }, + { "gsmtap-ip", 1, 0, 'i' }, { "keep-running", 0, 0, 'k' }, { "usb-vendor", 1, 0, 'V' }, { "usb-product", 1, 0, 'P' }, @@ -746,7 +746,7 @@ int main(int argc, char **argv) while (1) { int option_index = 0; - c = getopt_long(argc, argv, "s:p:hi:V:P:C:I:S:A:H:a:k", opts, &option_index); + c = getopt_long(argc, argv, "s:p:hi:kV:P:C:I:S:A:H:a:", opts, &option_index); if (c == -1) break; switch (c) {