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

Function parse_args

tests/DCPS/DcpsIntegration/topic.cpp:25–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25int
26parse_args (int argc, ACE_TCHAR *argv[])
27{
28
29 ACE_Arg_Shifter arg_shifter (argc, argv);
30
31 while (arg_shifter.is_anything_left ())
32 {
33 if (arg_shifter.cur_arg_strncasecmp(ACE_TEXT("-?")) == 0)
34 {
35 ACE_ERROR_RETURN ((LM_ERROR,
36 "usage: %s "
37 "-k <ior> "
38 "\n",
39 argv [0]),
40 -1);
41 }
42 else
43 {
44 arg_shifter.ignore_arg ();
45 }
46 }
47
48 // Indicates successful parsing of the command line
49 return 0;
50}
51
52
53

Callers 1

ACE_TMAINFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected