Skip to content

Commit a05776a

Browse files
committed
Removed WIP changes to implement mixed long and short multiple valued arguments
1 parent a168326 commit a05776a

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

Utility.CommandLine.Arguments/Arguments.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public static void Populate(Type type, Arguments arguments)
416416
}
417417

418418
// set the target properties' value to the converted value from the argument string
419-
AppendPropertyValue(property, convertedValue);
419+
property.SetValue(null, convertedValue);
420420
}
421421
}
422422

@@ -441,23 +441,6 @@ public static void Populate(Type type, Arguments arguments)
441441

442442
#region Private Methods
443443

444-
/// <summary>
445-
/// Appends the value of the specified property with the specified value.
446-
/// </summary>
447-
/// <remarks>Assumes that only static properties are to be set.</remarks>
448-
/// <param name="property">The property for which the value is to be set.</param>
449-
/// <param name="value">The value to set.</param>
450-
private static void AppendPropertyValue(PropertyInfo property, object value)
451-
{
452-
object currentValue = property.GetValue(null);
453-
454-
if (property.GetType() != typeof(bool))
455-
{
456-
}
457-
458-
property.SetValue(null, value);
459-
}
460-
461444
/// <summary>
462445
/// Converts the specified value for the specified argument to the specified Type.
463446
/// </summary>

0 commit comments

Comments
 (0)