Rev 3375 | Rev 3411 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3375 | Rev 3376 | ||
|---|---|---|---|
| Line 136... | Line 136... | ||
| 136 | int * cmd_cat(char **argv) |
136 | int * cmd_cat(char **argv) |
| 137 | { |
137 | { |
| 138 | unsigned int argc, i, ret = 0, buffer = 0; |
138 | unsigned int argc, i, ret = 0, buffer = 0; |
| 139 | int c, opt_ind; |
139 | int c, opt_ind; |
| 140 | 140 | ||
| 141 | for (argc = 0; argv[argc] != NULL; argc ++); |
141 | argc = cli_count_args(argv); |
| 142 | 142 | ||
| 143 | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
143 | for (c = 0, optind = 0, opt_ind = 0; c != -1;) { |
| 144 | c = getopt_long(argc, argv, "hvmH:t:b:", long_options, &opt_ind); |
144 | c = getopt_long(argc, argv, "hvmH:t:b:", long_options, &opt_ind); |
| 145 | switch (c) { |
145 | switch (c) { |
| 146 | case 'h': |
146 | case 'h': |