Skip to content

Commit

Permalink
add sokol_d related help texts
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed May 11, 2024
1 parent 01feaff commit 29ec0ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shdc/args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static const getopt_option_t option_list[] = {
{ "module", 'm', GETOPT_OPTION_TYPE_REQUIRED, 0, OPTION_MODULE, "optional @module name override" },
{ "reflection", 'r', GETOPT_OPTION_TYPE_NO_ARG, 0, OPTION_REFLECTION, "generate runtime reflection functions" },
{ "bytecode", 'b', GETOPT_OPTION_TYPE_NO_ARG, 0, OPTION_BYTECODE, "output bytecode (HLSL and Metal)"},
{ "format", 'f', GETOPT_OPTION_TYPE_REQUIRED, 0, OPTION_FORMAT, "output format (default: sokol)", "[sokol|sokol_impl|sokol_zig|sokol_nim|sokol_odin|sokol_rust|bare|bare_yaml]" },
{ "format", 'f', GETOPT_OPTION_TYPE_REQUIRED, 0, OPTION_FORMAT, "output format (default: sokol)", "[sokol|sokol_impl|sokol_zig|sokol_nim|sokol_odin|sokol_rust|sokol_d|bare|bare_yaml]" },
{ "errfmt", 'e', GETOPT_OPTION_TYPE_REQUIRED, 0, OPTION_ERRFMT, "error message format (default: gcc)", "[gcc|msvc]"},
{ "dump", 'd', GETOPT_OPTION_TYPE_NO_ARG, 0, OPTION_DUMP, "dump debugging information to stderr"},
{ "genver", 'g', GETOPT_OPTION_TYPE_REQUIRED, 0, OPTION_GENVER, "version-stamp for code-generation", "[int]"},
Expand Down Expand Up @@ -77,6 +77,7 @@ static void print_help_string(getopt_context_t& ctx) {
" - sokol_nim Nim module file\n"
" - sokol_odin Odin module file\n"
" - sokol_rust Rust module file\n"
" - sokol_d D module file\n"
" - bare raw output of SPIRV-Cross compiler, in text or binary format\n"
" - bare_yaml like bare, but with reflection file in YAML format\n\n"
"Options:\n\n");
Expand Down

0 comments on commit 29ec0ba

Please sign in to comment.