MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/shuf.c:49–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49void
50usage (int status)
51{
52 if (status != EXIT_SUCCESS)
53 emit_try_help ();
54 else
55 {
56 printf (_("\
57Usage: %s [OPTION]... [FILE]\n\
58 or: %s -e [OPTION]... [ARG]...\n\
59 or: %s -i LO-HI [OPTION]...\n\
60"),
61 program_name, program_name, program_name);
62 fputs (_("\
63Write a random permutation of the input lines to standard output.\n\
64"), stdout);
65
66 emit_stdin_note ();
67 emit_mandatory_arg_note ();
68
69 oputs (_("\
70 -e, --echo treat each ARG as an input line\n\
71"));
72 oputs (_("\
73 -i, --input-range=LO-HI treat each number LO through HI as an input line\n\
74"));
75 oputs (_("\
76 -n, --head-count=COUNT output at most COUNT lines\n\
77"));
78 oputs (_("\
79 -o, --output=FILE write result to FILE instead of standard output\n\
80"));
81 oputs (_("\
82 --random-source=FILE get random bytes from FILE\n\
83"));
84 oputs (_("\
85 -r, --repeat output lines can be repeated\n\
86"));
87 oputs (_("\
88 -z, --zero-terminated line delimiter is NUL, not newline\n\
89"));
90 oputs (HELP_OPTION_DESCRIPTION);
91 oputs (VERSION_OPTION_DESCRIPTION);
92 emit_ancillary_info (PROGRAM_NAME);
93 }
94
95 exit (status);
96}
97
98/* For long options that have no equivalent short option, use a
99 non-character as a pseudo short option, starting with CHAR_MAX + 1. */

Callers 1

mainFunction · 0.70

Calls 3

emit_stdin_noteFunction · 0.85
emit_mandatory_arg_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected