Skip to content

Commit 4505463

Browse files
authored
fix for issue #32: refine cmd line args (#33)
1 parent 3cef8dc commit 4505463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/daemon/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ ocvsmd::daemon::engine::Config::Ptr loadConfig(const int err_fd,
301301
const char** const argv)
302302
{
303303
static const std::string cfg_file_name = "ocvsmd.toml";
304-
static const std::string config_file_prefix = "CONFIG_FILE=";
304+
static const std::string config_file_prefix = "--config-file=";
305305

306306
const std::string cfg_file_dir = is_daemonized ? "/etc/ocvsmd/" : "./";
307307
auto cfg_file_path = cfg_file_dir + cfg_file_name;
@@ -338,7 +338,7 @@ int main(const int argc, const char** const argv)
338338
bool should_daemonize = true;
339339
for (int i = 1; i < argc; ++i)
340340
{
341-
if (::strcmp(argv[i], "--dev") == 0) // NOLINT
341+
if (::strcmp(argv[i], "--no-daemon") == 0) // NOLINT
342342
{
343343
should_daemonize = false;
344344
}

0 commit comments

Comments
 (0)