Skip to content

Commit 64c3875

Browse files
committed
Minor fixes for version 1.0.1.0
1 parent 52c57b3 commit 64c3875

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

MedallionShell/Command.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void Wait()
201201
/// <summary>
202202
/// A convenience method for calling <see cref="Shell.Run(String, IEnumerable{Object}, Action{Shell.Options})"/> on <see cref="Shell.Default"/>
203203
/// </summary>
204-
public static Command Run(string executable, IEnumerable<object> arguments, Action<Shell.Options> options = null)
204+
public static Command Run(string executable, IEnumerable<object> arguments = null, Action<Shell.Options> options = null)
205205
{
206206
return Shell.Default.Run(executable, arguments, options);
207207
}

MedallionShell/MedallionShell.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
A lightweight library that simplifies working with processes in .NET
1616
</description>
1717
<releaseNotes>
18-
Initial release
18+
Allowed for argument ommission in Command.Run(), other minor fixes
1919
</releaseNotes>
2020
<copyright>Copyright 2014</copyright>
2121
<tags>process async</tags>

MedallionShell/Properties/AssemblyInfo.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
35+
36+
// 1.0.1.0: allowed for argument ommission in Command.Run(), other minor fixes
37+
[assembly: AssemblyVersion("1.0.1.0")]
3638
[assembly: AssemblyFileVersion("1.0.0.0")]
3739

3840
[assembly: InternalsVisibleTo("MedallionShell.Tests")]

MedallionShell/Shell.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics;
4+
using System.Globalization;
45
using System.Linq;
56
using System.Text;
67
using System.Threading;
@@ -42,7 +43,7 @@ public Command Run(string executable, IEnumerable<object> arguments = null, Acti
4243
var processStartInfo = new ProcessStartInfo
4344
{
4445
Arguments = arguments != null
45-
? finalOptions.CommandLineSyntax.CreateArgumentString(arguments.Select(Convert.ToString))
46+
? finalOptions.CommandLineSyntax.CreateArgumentString(arguments.Select(arg => Convert.ToString(arg, CultureInfo.InvariantCulture)))
4647
: string.Empty,
4748
CreateNoWindow = true,
4849
FileName = executable,

0 commit comments

Comments
 (0)