4 * Gunnar Ritter, Freiburg i. Br., Germany, December 2000.
10 * This command is deprecated. The utility is in maintenance mode,
11 * meaning we keep them in source tree for backward compatibility
12 * only. Do not waste time making this command better, unless the
13 * fix is about security or other very critical issue.
15 * See Documentation/deprecated.txt for more information.
23 #include "closestream.h"
27 static void __attribute__((__noreturn__
)) usage(void)
30 fputs(USAGE_HEADER
, out
);
31 fprintf(out
, _(" %s [options]\n"), program_invocation_short_name
);
33 fputs(USAGE_SEPARATOR
, out
);
34 fputs(_("Read one line.\n"), out
);
36 fputs(USAGE_OPTIONS
, out
);
37 fputs(USAGE_HELP
, out
);
38 fputs(USAGE_VERSION
, out
);
39 fprintf(out
, USAGE_MAN_TAIL("line(1)"));
43 int main(int argc
, char **argv
)
47 int status
= EXIT_SUCCESS
;
49 static const struct option longopts
[] = {
50 {"version", no_argument
, NULL
, 'V'},
51 {"help", no_argument
, NULL
, 'h'},
55 setlocale(LC_ALL
, "");
56 bindtextdomain(PACKAGE
, LOCALEDIR
);
60 while ((opt
= getopt_long(argc
, argv
, "Vh", longopts
, NULL
)) != -1)
63 printf(UTIL_LINUX_VERSION
);
68 errtryhelp(EXIT_FAILURE
);
71 setvbuf(stdin
, NULL
, _IONBF
, 0);
75 status
= EXIT_FAILURE
;