@@ -57,19 +57,32 @@ int main(int argc, char** argv)
5757 {
5858 url = " ws://127.0.0.1:3474/" ;
5959 }
60+ else if (std::string (argv[i]) == " --url" )
61+ {
62+ if (i + 1 >= argc)
63+ {
64+ std::cerr << " Error: --url option requires a URL argument. Use --help to see usage" << std::endl;
65+ return 1 ;
66+ }
67+ url = argv[++i];
68+ }
6069 else if (std::string (argv[i]) == " --dbg" )
6170 {
6271 logLevel = Firebolt::LogLevel::Debug;
6372 }
6473 else if (std::string (argv[i]) == " --help" )
6574 {
6675 /* clang-format off */
67- std::cout << " Usage: " << argv[0 ] << " [--auto] [--mock] [--platform] [--dbg] [--help]" << std::endl;
68- std::cout << " --auto Automatically run all methods for all interfaces without user input." << std::endl;
69- std::cout << " --mock Connect to a local mock server instead of the default Firebolt Demo Service." << std::endl;
70- std::cout << " --platform Connect to the platform's Firebolt service (default if available)." << std::endl;
71- std::cout << " --dbg Enable debug logging." << std::endl;
72- std::cout << " --help Show this help message." << std::endl;
76+ std::cout << " SYNOPSIS" << std::endl;
77+ std::cout << " " << argv[0 ] << " [<options>]" << std::endl;
78+ std::cout << std::endl;
79+ std::cout << " OPTIONS" << std::endl;
80+ std::cout << " --auto Automatically run all methods for all interfaces without user input" << std::endl;
81+ std::cout << " --mock Connect to a local mock server instead of the default Firebolt Demo Service" << std::endl;
82+ std::cout << " --platform Connect to the platform's Firebolt service (default if available)" << std::endl;
83+ std::cout << " --url <URL> Specify a custom URL for the Firebolt service" << std::endl;
84+ std::cout << " --dbg Enable debug logging" << std::endl;
85+ std::cout << " --help Show this help message" << std::endl;
7386 /* clang-format on */
7487 return 0 ;
7588 }
0 commit comments