mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
clean up
This commit is contained in:
parent
a221e431aa
commit
87ce37df8c
5 changed files with 11 additions and 80 deletions
|
@ -54,7 +54,6 @@ int main(int argc, char* argv[])
|
|||
po::options_description desc("Allowed options");
|
||||
desc.add_options()
|
||||
("help,h", "produce help message")
|
||||
("test", "for testing")
|
||||
("version,v", "show version number")
|
||||
("port,p", po::value<size_t>(&settings.port)->default_value(settings.port), "server port")
|
||||
("controlPort", po::value<size_t>(&settings.controlPort)->default_value(settings.controlPort), "Remote control port")
|
||||
|
@ -70,12 +69,6 @@ int main(int argc, char* argv[])
|
|||
po::store(po::parse_command_line(argc, argv, desc), vm);
|
||||
po::notify(vm);
|
||||
|
||||
if (vm.count("test"))
|
||||
{
|
||||
Config::instance().test();
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (vm.count("help"))
|
||||
{
|
||||
cout << desc << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue