| 28 | } |
| 29 | |
| 30 | int parse_args(int argc, ACE_TCHAR *argv[]) |
| 31 | { |
| 32 | ACE_Arg_Shifter arg_shifter(argc, argv); |
| 33 | |
| 34 | while (arg_shifter.is_anything_left()) |
| 35 | { |
| 36 | const ACE_TCHAR *currentArg = 0; |
| 37 | |
| 38 | if ((currentArg = arg_shifter.get_the_parameter(ACE_TEXT("-k"))) != 0) { |
| 39 | ior = currentArg; |
| 40 | arg_shifter.consume_arg(); |
| 41 | |
| 42 | } else if (arg_shifter.cur_arg_strncasecmp(ACE_TEXT("-h")) == 0) { |
| 43 | print_usage(); |
| 44 | return 1; |
| 45 | } else { |
| 46 | arg_shifter.ignore_arg(); |
| 47 | } |
| 48 | } |
| 49 | // Indicates successful parsing of the command line |
| 50 | return 0; |
| 51 | } |
| 52 | |
| 53 | int ACE_TMAIN(int argc, ACE_TCHAR *argv[]) |
| 54 | { |
no test coverage detected