diff options
Diffstat (limited to 'util-linux/script.c')
-rw-r--r-- | util-linux/script.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util-linux/script.c b/util-linux/script.c index 4cb9842a0..8174c65bf 100644 --- a/util-linux/script.c +++ b/util-linux/script.c | |||
@@ -78,12 +78,10 @@ int script_main(int argc UNUSED_PARAM, char **argv) | |||
78 | "quiet\0" No_argument "q" | 78 | "quiet\0" No_argument "q" |
79 | "timing\0" Optional_argument "t" | 79 | "timing\0" Optional_argument "t" |
80 | ; | 80 | ; |
81 | |||
82 | applet_long_options = script_longopts; | ||
83 | #endif | 81 | #endif |
84 | 82 | ||
85 | opt_complementary = "?1"; /* max one arg */ | 83 | opt_complementary = "?1"; /* max one arg */ |
86 | opt = getopt32(argv, "ac:fqt::", &shell_arg, &str_t); | 84 | opt = getopt32long(argv, "ac:fqt::", script_longopts, &shell_arg, &str_t); |
87 | //argc -= optind; | 85 | //argc -= optind; |
88 | argv += optind; | 86 | argv += optind; |
89 | if (argv[0]) { | 87 | if (argv[0]) { |