strace.c: sort option arguments alphabetically

Except for the ones that enabled by configure options.

While we are here, let's also change the indentation of while expression
continuation in order to separate it from the following switch clause.

* strace.c (init): Reorder options in getopt() call.
This commit is contained in:
Eugene Syromyatnikov 2017-12-20 15:45:55 +01:00 committed by Dmitry V. Levin
parent 67c4b41ed0
commit 61c03be596

View File

@ -1577,13 +1577,11 @@ init(int argc, char *argv[])
# error Bug in DEFAULT_QUAL_FLAGS
#endif
qualify("signal=all");
while ((c = getopt(argc, argv,
"+b:cCdfFhiqrtTvVwxyz"
while ((c = getopt(argc, argv, "+"
#ifdef USE_LIBUNWIND
"k"
"k"
#endif
"D"
"a:e:o:O:p:s:S:u:E:P:I:")) != EOF) {
"a:b:cCdDe:E:fFhiI:o:O:p:P:qrs:S:tTu:vVwxyz")) != EOF) {
switch (c) {
case 'b':
if (strcmp(optarg, "execve") != 0)