bunpen: log the args it was invoked with

This commit is contained in:
2024-09-02 21:53:41 +00:00
parent 0ee51d1812
commit 1719943a6e

View File

@@ -29,7 +29,6 @@ export fn main() void = {
// install my logger, but defaulted to no logging.
log::tree::install(tree::global);
let name = os::args[0];
let opts = match (config::parse_args(os::args[1..])) {
case errors::invalid =>
config::usage();
@@ -40,6 +39,12 @@ export fn main() void = {
// configure logging early
log::tree::set_level(tree::global, opts.debug);
{
let argv_str = strings::join(" ", os::args[1..]...);
defer free(argv_str);
log::printfln("invoked with: {}", argv_str);
};
let req = match (config::ingest_cli_opts(opts)) {
case config::help =>
config::usage();