Changes in uspace/app/bdsh/cmds/modules/mount/mount.c [e6cb880:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
re6cb880 ra000878c 31 31 #include <vfs/vfs.h> 32 32 #include <errno.h> 33 #include <getopt.h>34 33 #include "config.h" 35 34 #include "util.h" … … 41 40 static const char *cmdname = "mount"; 42 41 43 static struct option const long_options[] = { 44 { "help", no_argument, 0, 'h' }, 45 { 0, 0, 0, 0 } 46 }; 47 48 49 /* Displays help for mount in various levels */ 42 /* Dispays help for mount in various levels */ 50 43 void help_cmd_mount(unsigned int level) 51 44 { … … 66 59 unsigned int argc; 67 60 const char *mopts = ""; 68 int rc , c, opt_ind;61 int rc; 69 62 70 63 argc = cli_count_args(argv); 71 64 72 for (c = 0, optind = 0, opt_ind = 0; c != -1;) {73 c = getopt_long(argc, argv, "h", long_options, &opt_ind);74 switch (c) {75 case 'h':76 help_cmd_mount(HELP_LONG);77 return CMD_SUCCESS;78 }79 }80 81 65 if ((argc < 4) || (argc > 5)) { 82 printf("%s: invalid number of arguments. Try `mount --help'\n",66 printf("%s: invalid number of arguments.\n", 83 67 cmdname); 84 68 return CMD_FAILURE;
Note:
See TracChangeset
for help on using the changeset viewer.