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

Function usage

src/mkdir.c:50–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50void
51usage (int status)
52{
53 if (status != EXIT_SUCCESS)
54 emit_try_help ();
55 else
56 {
57 printf (_("Usage: %s [OPTION]... DIRECTORY...\n"), program_name);
58 fputs (_("\
59Create the DIRECTORY(ies), if they do not already exist.\n\
60"), stdout);
61
62 emit_mandatory_arg_note ();
63
64 oputs (_("\
65 -m, --mode=MODE\n\
66 set file mode (as in chmod), not a=rwx - umask\n\
67"));
68 oputs (_("\
69 -p, --parents\n\
70 no error if existing, make parent directories as needed,\n\
71 with their file modes unaffected by any -m option\n\
72"));
73 oputs (_("\
74 -v, --verbose\n\
75 print a message for each created directory\n\
76"));
77 oputs (_("\
78 -Z\n\
79 set SELinux security context of each created directory\n\
80 to the default type\n\
81"));
82 oputs (_("\
83 --context[=CTX]\n\
84 like -Z, or if CTX is specified then set the\n\
85 SELinux or SMACK security context to CTX\n\
86"));
87 oputs (HELP_OPTION_DESCRIPTION);
88 oputs (VERSION_OPTION_DESCRIPTION);
89 emit_ancillary_info (PROGRAM_NAME);
90 }
91 exit (status);
92}
93
94/* Options passed to subsidiary functions. */
95struct mkdir_options

Callers 1

mainFunction · 0.70

Calls 2

emit_mandatory_arg_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected