@@ -49,46 +49,46 @@ class CLIParser
4949 static void print_help (
5050 uint8_t return_code)
5151 {
52- std::cout << " Usage: ddsenabler_example_service <client|server> [options]" <<
53- std::endl;
54- std::cout << " " <<
55- std::endl;
56- std::cout << " --config <str> Path to the configuration file" <<
57- std::endl;
58- std::cout << " (optional, if not provided default config is used)" <<
59- std::endl;
60- std::cout << " --service-name <str> Name of the service to be registered" <<
61- std::endl;
62- std::cout << " (Default: 'add_two_ints')" <<
63- std::endl;
64- std::cout << " --timeout <num> Time (seconds) to wait before stopping the" <<
65- std::endl;
66- std::cout << " program if expectations are not met" <<
67- std::endl;
68- std::cout << " (Default: 30)" <<
69- std::endl;
70- std::cout << " --persistence-path <str> Path to the persistence directory" <<
71- std::endl;
72- std::cout << " (No default value as it is required)" <<
73- std::endl;
74- std::cout << " \n -------------------------------------SERVER OPTIONS------------------------------------\n " <<
75- std::endl;
76- std::cout << " --expected-requests <num> Number of requests expected to be received" <<
77- std::endl;
78- std::cout << " (Default: 0, meaning infinite)" <<
79- std::endl;
80- std::cout << " \n -------------------------------------CLIENT OPTIONS------------------------------------\n " <<
81- std::endl;
82- std::cout << " --request-initial-wait <num> Time (seconds) to wait before starting" <<
83- std::endl;
84- std::cout << " requests publication since server matching" <<
85- std::endl;
86- std::cout << " (Default: 0)" <<
87- std::endl;
88- std::cout << " --requests-path <str> Directory containing request JSON files" <<
89- std::endl;
90- std::cout << " (No default value as it is required for client mode)" <<
91- std::endl;
52+ std::cout << " Usage: ddsenabler_example_service <client|server> [options]"
53+ << std::endl;
54+ std::cout << " "
55+ << std::endl;
56+ std::cout << " --config <str> Path to the configuration file"
57+ << std::endl;
58+ std::cout << " (optional, if not provided default config is used)"
59+ << std::endl;
60+ std::cout << " --service-name <str> Name of the service to be registered"
61+ << std::endl;
62+ std::cout << " (Default: 'add_two_ints')"
63+ << std::endl;
64+ std::cout << " --timeout <num> Time (seconds) to wait before stopping the"
65+ << std::endl;
66+ std::cout << " program if expectations are not met"
67+ << std::endl;
68+ std::cout << " (Default: 30)"
69+ << std::endl;
70+ std::cout << " --persistence-path <str> Path to the persistence directory"
71+ << std::endl;
72+ std::cout << " (No default value as it is required)"
73+ << std::endl;
74+ std::cout << " \n -------------------------------------SERVER OPTIONS------------------------------------\n "
75+ << std::endl;
76+ std::cout << " --expected-requests <num> Number of requests expected to be received"
77+ << std::endl;
78+ std::cout << " (Default: 0, meaning infinite)"
79+ << std::endl;
80+ std::cout << " \n -------------------------------------CLIENT OPTIONS------------------------------------\n "
81+ << std::endl;
82+ std::cout << " --request-initial-wait <num> Time (seconds) to wait before starting"
83+ << std::endl;
84+ std::cout << " requests publication since server matching"
85+ << std::endl;
86+ std::cout << " (Default: 0)"
87+ << std::endl;
88+ std::cout << " --requests-path <str> Directory containing request JSON files"
89+ << std::endl;
90+ std::cout << " (No default value as it is required for client mode)"
91+ << std::endl;
9292 std::exit (return_code);
9393 }
9494
@@ -218,8 +218,8 @@ class CLIParser
218218 }
219219 catch (const std::exception& e)
220220 {
221- std::cerr << " Invalid --expected-requests argument " << argv[i] << " : " << e.what () <<
222- std::endl;
221+ std::cerr << " Invalid --expected-requests argument " << argv[i] << " : " << e.what ()
222+ << std::endl;
223223 print_help (EXIT_FAILURE );
224224 }
225225 }
@@ -239,8 +239,8 @@ class CLIParser
239239 }
240240 catch (const std::exception& e)
241241 {
242- std::cerr << " Invalid --request-initial-wait argument " << argv[i] << " : " << e.what () <<
243- std::endl;
242+ std::cerr << " Invalid --request-initial-wait argument " << argv[i] << " : " << e.what ()
243+ << std::endl;
244244 print_help (EXIT_FAILURE );
245245 }
246246 }
@@ -290,8 +290,8 @@ class CLIParser
290290
291291 if (config.persistence_path .empty ())
292292 {
293- std::cerr << " Warning: persistence path is not set, persistence features will be disabled" <<
294- std::endl;
293+ std::cerr << " Warning: persistence path is not set, persistence features will be disabled"
294+ << std::endl;
295295 }
296296
297297 return config;
0 commit comments