Skip to content

Commit 2a3afc1

Browse files
committed
Cleaned up whitespace and removed unused usings
Fixes #41
1 parent cdf8fc5 commit 2a3afc1

File tree

10 files changed

+6
-17
lines changed

10 files changed

+6
-17
lines changed

src/AtleX.CommandLineArguments/Configuration/AutoDetectConfiguration.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public AutoDetectConfiguration()
3232
this.Parser = new LinuxStyleParser();
3333
this.HelpWriter = new LinuxStyleHelpWriter();
3434
}
35-
36-
3735
}
3836
}
3937
}

src/AtleX.CommandLineArguments/Configuration/KeyValueStyleConfiguration.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ public KeyValueStyleConfiguration()
1818
this.Parser = new KeyValueStyleParser();
1919
this.HelpWriter = new KeyValueStyleHelpWriter();
2020
}
21-
2221
}
2322
}

src/AtleX.CommandLineArguments/Help/HelpWriter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ protected IEnumerable<ArgumentHelpDetails> GetHelpDetails<T>(T argumentsObject)
9494
/// </returns>
9595
protected abstract string GetExactCommandlineNameOfArgument(string argumentName);
9696

97-
9897
/// <summary>
9998
/// Get the description from the <see cref="DisplayAttribute"/> on the
10099
/// specified <see cref="PropertyInfo"/>, if any

src/AtleX.CommandLineArguments/Help/LinuxStyleHelpWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public sealed class LinuxStyleHelpWriter
99
/// <summary>
1010
/// Initializes a new instance of <see cref="LinuxStyleHelpWriter"/>
1111
/// </summary>
12-
public LinuxStyleHelpWriter()
12+
public LinuxStyleHelpWriter()
1313
: base("--")
1414
{
1515
}

src/AtleX.CommandLineArguments/Help/WindowsStyleHelpWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class WindowsStyleHelpWriter
99
/// <summary>
1010
/// Initializes a new instance of <see cref="WindowsStyleHelpWriter"/>
1111
/// </summary>
12-
public WindowsStyleHelpWriter()
12+
public WindowsStyleHelpWriter()
1313
: base("/")
1414
{
1515
}

src/AtleX.CommandLineArguments/Parsers/Helpers/ArgumentPropertiesHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Reflection;
4-
using System.Runtime.CompilerServices;
54
using AtleX.CommandLineArguments.Parsers.TypeParsers;
65

76
namespace AtleX.CommandLineArguments.Parsers.Helpers

src/AtleX.CommandLineArguments/Parsers/ICommandLineArgumentsParser.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using AtleX.CommandLineArguments.Parsers.TypeParsers;
22
using AtleX.CommandLineArguments.Validators;
3-
using System;
43
using System.Collections.Generic;
5-
using System.Text;
64

75
namespace AtleX.CommandLineArguments.Parsers
86
{

src/AtleX.CommandLineArguments/Parsers/LinuxStyleParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public sealed class LinuxStyleParser
1313
/// Gets the prefix that indicates a key
1414
/// </summary>
1515
private const string KeyPrefix = "--";
16-
16+
1717
/// <summary>
1818
/// Gets the complete argument that indicates that the user requested help
1919
/// </summary>
@@ -27,7 +27,7 @@ public LinuxStyleParser()
2727
: base(KeyPrefix)
2828
{
2929
}
30-
30+
3131
/// <summary>
3232
/// Gets whether the specified command line arguments contain a Help argument or not
3333
/// </summary>
@@ -44,7 +44,7 @@ protected override bool ContainsHelpArgument(string[] allCommandLineArguments)
4444
for (var i = 0; i < allCommandLineArguments.Length; i++)
4545
{
4646
var currentArgumentName = allCommandLineArguments[i];
47-
47+
4848
if (currentArgumentName == HelpArgument)
4949
{
5050
result = true;

src/AtleX.CommandLineArguments/Parsers/PrefixedKeyParser.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32

43
namespace AtleX.CommandLineArguments.Parsers
54
{
@@ -35,7 +34,6 @@ public PrefixedKeyParser(string keyIndicator)
3534
this._keyPrefixLength = keyIndicator.Length;
3635
}
3736

38-
3937
/// <summary>
4038
/// Try to find an argument with the specified name in the specified
4139
/// collection of all command line arguments
@@ -110,6 +108,5 @@ private bool ArgumentIsKey(string argument)
110108

111109
return result;
112110
}
113-
114111
}
115112
}

src/AtleX.CommandLineArguments/Validators/RequiredArgumentValidator.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.ComponentModel.DataAnnotations;
1+
using System.ComponentModel.DataAnnotations;
32
using System.Reflection;
43

54
namespace AtleX.CommandLineArguments.Validators

0 commit comments

Comments
 (0)