Skip to content

Commit

Permalink
Change delimiter back to whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
nasadigital committed Apr 16, 2020
1 parent 9da0d64 commit f48cb5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions vnext/Microsoft.ReactNative/ReactApplicationDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ static void ApplyArguments(ReactNative::ReactNativeHost const &host, std::wstrin
Microsoft::ReactNative::implementation::ReactNativeHost *hostImpl{
get_self<Microsoft::ReactNative::implementation::ReactNativeHost>(host)};
if (!arguments.empty() /*&& host.HasInstance()*/) {
constexpr wchar_t delimiter = L',';
constexpr wchar_t delimiter = L' ';
std::wistringstream argumentStream(arguments);
std::wstring token;
while (std::getline(argumentStream, token, delimiter)) {
if (token == L"-?") {
std::cout << "Options:\n"
" directDebugging,<port> Enable direct debugging on specified port.\n";
std::cout.flush();
std::cout << "Options:" << std::endl
<< " directDebugging <port> Enable direct debugging on specified port." << std::endl;
} else if (token == L"directDebugging") {
if (std::getline(argumentStream, token, delimiter)) {
const uint16_t port = static_cast<uint16_t>(std::wcstoul(token.c_str(), nullptr, 10));
Expand Down
2 changes: 1 addition & 1 deletion vnext/local-cli/runWindows/utils/WindowsStoreAppUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@ function Start-Locally {

add-type -TypeDefinition $code
$appActivator = new-object StoreAppRunner.ApplicationActivationManager
$args = [system.String]::Join(",", $argv)
$args = [system.String]::Join(" ", $argv)
$appActivator.ActivateApplication($applicationUserModelId,$args,[StoreAppRunner.ActivateOptions]::None,[ref]0) | Out-Null
}

0 comments on commit f48cb5b

Please sign in to comment.