#compdef bingrep

_bingrep() {
  _arguments -s \
    '--extract[extract from an archive object file which contains given symbol]:archive:' \
    '--ranges[print high level overview of the file offset ranges]' \
    '--hex[print colored and semantically tagged hex table]' \
    {-d,--debug}'[print debug version of parse results]' \
    {-t,--truncate}'[truncate string results to X characters \[default: 2048\]]:string:' \
    '--color[forces coloring, even in files and pipes]': \
    {-s,--search}'[search for string]:string:' \
    {-D,--demangle}'[apply Rust/C++ demangling]': \
    {-h,--help}'[print help]': \
    {-V,--version}'[print version]': \
    '*:filename:_files'
}

_bingrep
