babashka

jdjohnston 2026-01-05T18:26:08.137249Z

The -D command line option is useful, but seems to be undocumented as a Babashka option. My guess is that it is a common option for programs compiled with GraalVM Native Image, but how is the casual Babashka user supposed to know that? Besides, there's much documentation for the Native Image compiler, but where are the options for programs compiled by Native Image defined? I know that bb help displays some "Substrate VM opts", but -D isn't included. Are there any other "hidden" options that would be worth documenting?

borkdude 2026-01-05T18:40:52.987899Z

This could be added under:

Substrate VM opts:

  -Xmx<size>[g|G|m|M|k|K]  Set a maximum heap size (e.g. -Xmx256M to limit the heap to 256MB).
  -XX:PrintFlags=          Print all Substrate VM options.

jdjohnston 2026-01-05T18:45:01.002579Z

Agreed. Any other that should be documented?

borkdude 2026-01-05T19:03:46.042099Z

Probably that's the main one

jdjohnston 2026-01-05T20:42:10.168449Z

Worth a GitHub Issue?

👍 1