NotBlank Annotation

@NotBlank

The @NotBlank annotation may be applied to fields annotated with @Option and @Arguments to require that the value given not be all whitespace e.g.

@Option(name = "--reference", arity = 1)
@NotBlank
private String reference;

Restricts the --reference option to strings which are not entirely whitespace i.e. this must be some non-whitespace characters in the value

If you want to require a non-empty value then @NotEmpty would be suitable.


Improving this Documentation

This documentation is itself open source and lives in GitHub under the docs/ directory.

I am not a professional technical writer and as the developer of this software I can often make assumptions of knowledge that you as a user reading this may not have. Improvements to the documentation are always welcome, if you have suggestions for the documentation please submit pull requests to the main branch.