diff options
Diffstat (limited to 'coreutils/nl.c')
-rw-r--r-- | coreutils/nl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/nl.c b/coreutils/nl.c index 93e78c490..c2f8b1042 100644 --- a/coreutils/nl.c +++ b/coreutils/nl.c | |||
@@ -57,14 +57,13 @@ int nl_main(int argc UNUSED_PARAM, char **argv) | |||
57 | "starting-line-number\0"Required_argument "v" | 57 | "starting-line-number\0"Required_argument "v" |
58 | "number-width\0" Required_argument "w" | 58 | "number-width\0" Required_argument "w" |
59 | ; | 59 | ; |
60 | |||
61 | applet_long_options = nl_longopts; | ||
62 | #endif | 60 | #endif |
63 | ns.width = 6; | 61 | ns.width = 6; |
64 | ns.start = 1; | 62 | ns.start = 1; |
65 | ns.inc = 1; | 63 | ns.inc = 1; |
66 | ns.sep = "\t"; | 64 | ns.sep = "\t"; |
67 | getopt32(argv, "pw:+s:v:+i:+b:", &ns.width, &ns.sep, &ns.start, &ns.inc, &opt_b); | 65 | getopt32long(argv, "pw:+s:v:+i:+b:", nl_longopts, |
66 | &ns.width, &ns.sep, &ns.start, &ns.inc, &opt_b); | ||
68 | ns.all = (opt_b[0] == 'a'); | 67 | ns.all = (opt_b[0] == 'a'); |
69 | ns.nonempty = (opt_b[0] == 't'); | 68 | ns.nonempty = (opt_b[0] == 't'); |
70 | ns.empty_str = xasprintf("%*s\n", ns.width + (int)strlen(ns.sep), ""); | 69 | ns.empty_str = xasprintf("%*s\n", ns.width + (int)strlen(ns.sep), ""); |