#compdef wflinfo

# first two are required, the rest optional...
_arguments \
    {-p,--platform}'[Platform type]:platform:((
        android cgl gbm glx surfaceless_egl sl wayland wgl x11_egl
    ))' \
    {-a,--api}'[API type]:api:(gl gles1 gles2 gles3)' \
    {-V,--version}'[API version]:version:((
        1.{0..5} 2.{0..1} 3.{0..3} 4.{0..6}
    ))' \
    '--profile[OpenGL profile]:profile:(core compat none)' \
    {-v,--verbose}'[Print more information]' \
    '--forward-compatible[Create a forward-compatible context]' \
    '--debug-context[Create a debug context]' \
    {-f,--format}'[Output format, default original]:format:(original json)' \
    {-h,--help}'[Print wflinfo usage information]'
