mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
Rearrange the options into alpha order.
This commit is contained in:
parent
51b98ee758
commit
f4d8b82115
1 changed files with 21 additions and 7 deletions
|
@ -93,19 +93,33 @@ int verbosity = 0;
|
|||
|
||||
static const struct option long_options[] = {
|
||||
{"disassemble", no_argument, 0, 'd'},
|
||||
{"globals", no_argument, 0, 'g'},
|
||||
{"strings", no_argument, 0, 's'},
|
||||
{"fields", no_argument, 0, 'f'},
|
||||
{"functions", no_argument, 0, 'F'},
|
||||
{"globals", no_argument, 0, 'g'},
|
||||
{"lines", no_argument, 0, 'l'},
|
||||
{"modules", no_argument, 0, 'M'},
|
||||
{"relocs", no_argument, 0, 'r'},
|
||||
{"path", required_argument, 0, 'P'},
|
||||
{"verbose", no_argument, 0, 'v'},
|
||||
{"numeric", no_argument, 0, 'n'},
|
||||
{"path", required_argument, 0, 'P'},
|
||||
{"relocs", no_argument, 0, 'r'},
|
||||
{"strings", no_argument, 0, 's'},
|
||||
{"verbose", no_argument, 0, 'v'},
|
||||
{NULL, 0, NULL, 0},
|
||||
};
|
||||
|
||||
static const char *short_options =
|
||||
"d"
|
||||
"F"
|
||||
"f"
|
||||
"g"
|
||||
"l"
|
||||
"M"
|
||||
"n"
|
||||
"P:"
|
||||
"r"
|
||||
"s"
|
||||
"v"
|
||||
;
|
||||
|
||||
static edict_t *edicts;
|
||||
static int num_edicts;
|
||||
static int reserved_edicts = 1;
|
||||
|
@ -493,8 +507,8 @@ main (int argc, char **argv)
|
|||
int c;
|
||||
operation_t *func = &operations[0];
|
||||
|
||||
while ((c = getopt_long (argc, argv,
|
||||
"rdgsfFlMP:vn", long_options, 0)) != EOF) {
|
||||
while ((c = getopt_long (argc, argv, short_options,
|
||||
long_options, 0)) != EOF) {
|
||||
switch (c) {
|
||||
case 'd':
|
||||
func = &operations[0];
|
||||
|
|
Loading…
Reference in a new issue