private void BindField(CommandEntry CommandEntry)
{
var Field = CommandEntry.FieldInfo;
Getopt.AddRule(CommandEntry.Aliases, () =>
{
if (Field.FieldType == typeof(bool))
{
Field.SetValue(this, true);
}
else
{
throw (new NotImplementedException("Not supported field type " + Field.FieldType));
}
});
}