v2 / vlib / v / help / other / bin2v.txt
14 lines · 11 sloc · 578 bytes · b3d742d13a1c694ebb2d10e38f94f78a48602cba
Raw
Converts a list of arbitrary files into a single v module file.

Usage:
  v bin2v [options] FILE[...]

You can use this tool to embed binary files, like pictures or fonts inside
the executable of a v program, such that it would not need access to external
resources during runtime, and it would be as self-contained as possible.

Options:
  -h, --help             Show this help screen.
  -m, --module   Name of the generated module.
  -p, --prefix   A prefix put before each resource name.
  -w, --write    Write directly to a file with the given name.