mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 01:25:41 -05:00
Add command line option to specify the logging directory (#336)
Two changes in this PR: * Add a --log-dir command line parameter and fix command line parsing * Fix command line parsing where arguments with parameter were parsed incorrectly
This commit is contained in:
@@ -212,7 +212,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.ServiceHost
|
||||
public void SrStringsTestWithEnLocalization()
|
||||
{
|
||||
string locale = "en";
|
||||
var args = new string[] { "--locale " + locale };
|
||||
var args = new string[] { "--locale", locale };
|
||||
CommandOptions options = new CommandOptions(args);
|
||||
Assert.Equal(SR.Culture.Name, options.Locale);
|
||||
Assert.Equal(options.Locale, locale);
|
||||
@@ -225,7 +225,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.ServiceHost
|
||||
public void SrStringsTestWithEsLocalization()
|
||||
{
|
||||
string locale = "es";
|
||||
var args = new string[] { "--locale " + locale };
|
||||
var args = new string[] { "--locale", locale };
|
||||
CommandOptions options = new CommandOptions(args);
|
||||
Assert.Equal(SR.Culture.Name, options.Locale);
|
||||
Assert.Equal(options.Locale, locale);
|
||||
|
||||
Reference in New Issue
Block a user