public static TemplateException OptionsMustHaveName(string template, TemplateToken token)
 {
     return(TemplateExceptionFactory.Create(template, token,
                                            "Options without name are not allowed.",
                                            "Missing option name."));
 }
 public static TemplateException MultipleShortOptionNamesNotAllowed(string template, TemplateToken token)
 {
     return(TemplateExceptionFactory.Create(template, token,
                                            "Multiple short option names are not supported.",
                                            "Too many short options."));
 }
 public static TemplateException MultipleValuesAreNotSupported(string template, TemplateToken token)
 {
     return(TemplateExceptionFactory.Create(template, token,
                                            "Multiple values are not supported.",
                                            "Too many values."));
 }
 public static TemplateException ArgumentCannotContainOptions(string template, TemplateToken token)
 {
     return(TemplateExceptionFactory.Create(template, token,
                                            "Arguments can not contain options.",
                                            "Not permitted."));
 }
 public static TemplateException UnterminatedValueName(string template, TemplateToken token)
 {
     return(TemplateExceptionFactory.Create(template, token,
                                            $"Encountered unterminated value name '{token.Value}'.",
                                            "Unterminated value name."));
 }
 public static TemplateException MissingLongAndShortName(string template, TemplateToken token)
 {
     return(TemplateExceptionFactory.Create(template, token,
                                            "No long or short name for option has been specified.",
                                            "Missing option. Was this meant to be an argument?"));
 }
 public static TemplateException OptionValueCannotBeOptional(string template, TemplateToken token)
 {
     return(TemplateExceptionFactory.Create(template, token,
                                            "Option values cannot be optional.",
                                            "Must be required."));
 }