MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / parse_args

Function parse_args

tools/dcpsinfo_dump/dump.cpp:30–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30int 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
53int ACE_TMAIN(int argc, ACE_TCHAR *argv[])
54{

Callers 1

ACE_TMAINFunction · 0.70

Calls 1

print_usageFunction · 0.70

Tested by

no test coverage detected