Skip to content

Commit

Permalink
add dashes to port and host options
Browse files Browse the repository at this point in the history
  • Loading branch information
nnnnathann authored and jwerle committed Sep 10, 2023
1 parent c52e849 commit f2e0b87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5389,7 +5389,7 @@ int main (const int argc, const char* argv[]) {
}

String devHost = "localhost";
if (optionsWithValue.count("host") > 0) {
if (optionsWithValue.count("--host") > 0) {
devHost = optionsWithValue["--host"];
} else {
if (isForIOS || isForAndroid) {
Expand All @@ -5406,7 +5406,7 @@ int main (const int argc, const char* argv[]) {
settings.insert(std::make_pair("host", devHost));

String devPort = "0";
if (optionsWithValue.count("port") > 0) {
if (optionsWithValue.count("--port") > 0) {
devPort = optionsWithValue["--port"];
}
settings.insert(std::make_pair("port", devPort));
Expand Down

0 comments on commit f2e0b87

Please sign in to comment.