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

Function usage

src/unexpand.c:72–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70};
71
72void
73usage (int status)
74{
75 if (status != EXIT_SUCCESS)
76 emit_try_help ();
77 else
78 {
79 printf (_("\
80Usage: %s [OPTION]... [FILE]...\n\
81"),
82 program_name);
83 fputs (_("\
84Convert blanks in each FILE to tabs, writing to standard output.\n\
85"), stdout);
86
87 emit_stdin_note ();
88 emit_mandatory_arg_note ();
89
90 oputs (_("\
91 -a, --all\n\
92 convert all blanks, instead of just initial blanks\n\
93"));
94 oputs (_("\
95 --first-only\n\
96 convert only leading sequences of blanks (overrides -a)\n\
97"));
98 oputs (_("\
99 -t, --tabs=N\n\
100 have tabs N characters apart instead of 8 (enables -a)\n\
101"));
102 emit_tab_list_info (PROGRAM_NAME);
103 oputs (HELP_OPTION_DESCRIPTION);
104 oputs (VERSION_OPTION_DESCRIPTION);
105 emit_ancillary_info (PROGRAM_NAME);
106 }
107 exit (status);
108}
109
110/* Change blanks to tabs, writing to stdout.
111 Read each file in 'file_list', in order. */

Callers 1

mainFunction · 0.70

Calls 4

emit_stdin_noteFunction · 0.85
emit_mandatory_arg_noteFunction · 0.85
emit_tab_list_infoFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected