Add flags for testing pairing
This commit is contained in:
parent
ad34fef228
commit
ad87463784
5 changed files with 156 additions and 25 deletions
|
|
@ -64,16 +64,8 @@ void on_signal(int sig, FN &&fn) {
|
|||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
const char *config_file = SUNSHINE_ASSETS_DIR "/sunshine.conf";
|
||||
if(argc > 1) {
|
||||
config_file = argv[1];
|
||||
}
|
||||
|
||||
if(!std::filesystem::exists(config_file)) {
|
||||
std::cout << "Warning: Couldn't find configuration file ["sv << config_file << ']' << std::endl;
|
||||
}
|
||||
else {
|
||||
config::parse_file(config_file);
|
||||
if(config::parse(argc, argv)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
sink = boost::make_shared<text_sink>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue