| 1 | cmd Main("mkdir") [ |
| 2 | requires CreateDirectories |
| 3 | ] { |
| 4 | /// directories to be created |
| 5 | arg CreateDirectories(..) => List<Path> [ |
| 6 | requires DirNotExists |
| 7 | effects DirExists |
| 8 | ] |
| 9 | |
| 10 | /// set file mode (as in chmod), not a=rwx - umask |
| 11 | opt Mode("m", "mode") => String |
| 12 | |
| 13 | /// no error if existing, make parent directories as needed |
| 14 | opt Parents("p", "parents") => Bool |
| 15 | |
| 16 | /// print a message for each created directory |
| 17 | opt Verbose("v", "verbose") => Bool |
| 18 | |
| 19 | /// set the SELinux security context of each created directory to CTX |
| 20 | opt Context("Z", "context") => String |
| 21 | |
| 22 | /// display this help and exit |
| 23 | opt Help("help") => Bool [ |
| 24 | excludes All |
| 25 | ] |
| 26 | |
| 27 | /// output version information and exit |
| 28 | opt Version("version") => Bool [ |
| 29 | excludes All |
| 30 | ] |
| 31 | } |