summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2013-12-01 09:36:37 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2013-12-01 09:36:37 -0500
commitbb878ebb4fe7162b22de5d9439549e35940de5ec (patch)
tree058ad41ae54591c330fd1b49e5b4614e789d172e /main.c
parent80e83ca401acbc7255c61d72be52a47bf23d3139 (diff)
downloadgawk-bb878ebb4fe7162b22de5d9439549e35940de5ec.tar.gz
Sort option table by long option name for ease of maintenance.
Diffstat (limited to 'main.c')
-rw-r--r--main.c43
1 files changed, 22 insertions, 21 deletions
diff --git a/main.c b/main.c
index d18a8e3b..e0bc1954 100644
--- a/main.c
+++ b/main.c
@@ -159,37 +159,38 @@ int ngroups; /* size of said set */
void (*lintfunc)(const char *mesg, ...) = r_warning;
+/* Sorted by long option name! */
static const struct option optab[] = {
- { "traditional", no_argument, NULL, 'c' },
+ { "assign", required_argument, NULL, 'v' },
+ { "bignum", no_argument, NULL, 'M' },
+ { "characters-as-bytes", no_argument, & do_binary, 'b' },
+ { "copyright", no_argument, NULL, 'C' },
+ { "debug", optional_argument, NULL, 'D' },
+ { "dump-variables", optional_argument, NULL, 'd' },
+ { "exec", required_argument, NULL, 'E' },
+ { "field-separator", required_argument, NULL, 'F' },
+ { "file", required_argument, NULL, 'f' },
+ { "gen-pot", no_argument, NULL, 'g' },
+ { "help", no_argument, NULL, 'h' },
+ { "include", required_argument, NULL, 'i' },
{ "lint", optional_argument, NULL, 'L' },
{ "lint-old", no_argument, NULL, 't' },
+ { "load", required_argument, NULL, 'l' },
+ { "non-decimal-data", no_argument, NULL, 'n' },
+ { "nostalgia", no_argument, & do_nostalgia, 1 },
{ "optimize", no_argument, NULL, 'O' },
+#if defined(YYDEBUG) || defined(GAWKDEBUG)
+ { "parsedebug", no_argument, NULL, 'Y' },
+#endif
{ "posix", no_argument, NULL, 'P' },
- { "nostalgia", no_argument, & do_nostalgia, 1 },
- { "gen-pot", no_argument, NULL, 'g' },
- { "non-decimal-data", no_argument, NULL, 'n' },
{ "pretty-print", optional_argument, NULL, 'o' },
{ "profile", optional_argument, NULL, 'p' },
- { "debug", optional_argument, NULL, 'D' },
- { "copyright", no_argument, NULL, 'C' },
- { "field-separator", required_argument, NULL, 'F' },
- { "file", required_argument, NULL, 'f' },
{ "re-interval", no_argument, NULL, 'r' },
+ { "sandbox", no_argument, NULL, 'S' },
{ "source", required_argument, NULL, 'e' },
- { "include", required_argument, NULL, 'i' },
- { "load", required_argument, NULL, 'l' },
- { "dump-variables", optional_argument, NULL, 'd' },
- { "assign", required_argument, NULL, 'v' },
- { "version", no_argument, & do_version, 'V' },
- { "help", no_argument, NULL, 'h' },
- { "exec", required_argument, NULL, 'E' },
+ { "traditional", no_argument, NULL, 'c' },
{ "use-lc-numeric", no_argument, & use_lc_numeric, 1 },
- { "characters-as-bytes", no_argument, & do_binary, 'b' },
- { "sandbox", no_argument, NULL, 'S' },
- { "bignum", no_argument, NULL, 'M' },
-#if defined(YYDEBUG) || defined(GAWKDEBUG)
- { "parsedebug", no_argument, NULL, 'Y' },
-#endif
+ { "version", no_argument, & do_version, 'V' },
{ NULL, 0, NULL, '\0' }
};