aboutsummaryrefslogtreecommitdiff
path: root/util-linux/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/script.c')
-rw-r--r--util-linux/script.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util-linux/script.c b/util-linux/script.c
index 4e0deb4ef..2e2be33e7 100644
--- a/util-linux/script.c
+++ b/util-linux/script.c
@@ -36,16 +36,17 @@ int script_main(int argc UNUSED_PARAM, char **argv)
36 OPT_t = (1 << 4), 36 OPT_t = (1 << 4),
37 }; 37 };
38 38
39#if ENABLE_GETOPT_LONG
39 static const char getopt_longopts[] ALIGN1 = 40 static const char getopt_longopts[] ALIGN1 =
40 "append\0" No_argument "a" 41 "append\0" No_argument "a"
41 "command\0" Required_argument "c" 42 "command\0" Required_argument "c"
42 "flush\0" No_argument "f" 43 "flush\0" No_argument "f"
43 "quiet\0" No_argument "q" 44 "quiet\0" No_argument "q"
44 IF_SCRIPTREPLAY("timing\0" No_argument "t") 45 IF_SCRIPTREPLAY("timing\0" No_argument "t")
45 ; 46 ;
46 47
47 if (ENABLE_GETOPT_LONG) 48 applet_long_options = getopt_longopts;
48 applet_long_options = getopt_longopts; 49#endif
49 50
50 opt_complementary = "?1"; /* max one arg */ 51 opt_complementary = "?1"; /* max one arg */
51 opt = getopt32(argv, "ac:fq" IF_SCRIPTREPLAY("t") , &shell_arg); 52 opt = getopt32(argv, "ac:fq" IF_SCRIPTREPLAY("t") , &shell_arg);