Changeset 18b6a88 in mainline for uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
r8ebe212 r18b6a88 51 51 52 52 static struct option const long_options[] = { 53 { "parents", no_argument, 0, 'p'},54 { "verbose", no_argument, 0, 'v'},55 { "mode", required_argument, 0, 'm'},56 { "help", no_argument, 0, 'h'},57 { "version", no_argument, 0, 'V'},58 { "follow", no_argument, 0, 'f'},59 { 0, 0, 0, 0}53 { "parents", no_argument, 0, 'p' }, 54 { "verbose", no_argument, 0, 'v' }, 55 { "mode", required_argument, 0, 'm' }, 56 { "help", no_argument, 0, 'h' }, 57 { "version", no_argument, 0, 'V' }, 58 { "follow", no_argument, 0, 'f' }, 59 { 0, 0, 0, 0 } 60 60 }; 61 61 … … 68 68 help_cmd_mkdir(HELP_SHORT); 69 69 printf( 70 "Usage: %s [options] <path>\n"71 "Options:\n"72 " -h, --help A short option summary\n"73 " -V, --version Print version information and exit\n"74 " -p, --parents Create needed parents for <path>\n"75 " -m, --mode Set permissions to [mode] (UNUSED)\n"76 " -v, --verbose Be extremely noisy about what is happening\n"77 " -f, --follow Go to the new directory once created\n"78 "Currently, %s is under development, some options don't work.\n",79 cmdname, cmdname);70 "Usage: %s [options] <path>\n" 71 "Options:\n" 72 " -h, --help A short option summary\n" 73 " -V, --version Print version information and exit\n" 74 " -p, --parents Create needed parents for <path>\n" 75 " -m, --mode Set permissions to [mode] (UNUSED)\n" 76 " -v, --verbose Be extremely noisy about what is happening\n" 77 " -f, --follow Go to the new directory once created\n" 78 "Currently, %s is under development, some options don't work.\n", 79 cmdname, cmdname); 80 80 } 81 81 … … 202 202 if (argc < 1) { 203 203 printf("%s - incorrect number of arguments. Try `%s --help'\n", 204 204 cmdname, cmdname); 205 205 return CMD_FAILURE; 206 206 } … … 209 209 if (verbose) 210 210 printf("%s: creating %s%s\n", 211 212 211 cmdname, argv[i], 212 create_parents ? " (and all parents)" : ""); 213 213 ret += create_directory(argv[i], create_parents); 214 214 }
Note:
See TracChangeset
for help on using the changeset viewer.