Pash-Project/Pash — pull request #145 by alistair (2013-09-05 11:45:58+00:00)
Title: Support Enum arguments.

BEFORE

```shell
$ mono Source/PashConsole/bin/Debug/Pash.exe
Pash - Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/

PASH Pash> write-host "Running psake build tests" -ForeGroundColor GREEN
ERROR: System.ArgumentException: Object type System.String cannot be converted to target type: System.ConsoleColor
at System.Reflection.Binder.ConvertValue (System.Object value, System.Type type, System.Globalization.CultureInfo culture, Boolean exactMatch) [0x00000] in :0
at System.Reflection.Binder.ConvertValues (System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, Boolean exactMatch) [0x00000] in :0
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x00000] in :0
at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in :0
at System.Management.Automation.CommandProcessor.SetValue (System.Reflection.MemberInfo info, System.Object targetObject, System.Object value) [0x00000] in :0
at System.Management.Automation.CommandProcessor.BindArgument (System.String name, System.Object value, System.Type type) [0x00000] in :0
at System.Management.Automation.CommandProcessor.BindArguments (System.Management.Automation.PSObject obj) [0x00000] in :0
at Pash.Implementation.PipelineProcessor.Execute (Pash.Implementation.ExecutionContext context) [0x00000] in :0
at Pash.Implementation.LocalPipeline.Invoke (IEnumerable input) [0x00000] in :0
```

AFTER
```shell
$ mono Source/PashConsole/bin/Debug/Pash.exe
Pash - Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/

PASH Pash> write-host "Running psake build tests" -ForeGroundColor GREEN
Running psake build tests
```

with Running psake build tests printed in green.