bunpen: log the args it was invoked with
This commit is contained in:
@@ -29,7 +29,6 @@ export fn main() void = {
|
|||||||
// install my logger, but defaulted to no logging.
|
// install my logger, but defaulted to no logging.
|
||||||
log::tree::install(tree::global);
|
log::tree::install(tree::global);
|
||||||
|
|
||||||
let name = os::args[0];
|
|
||||||
let opts = match (config::parse_args(os::args[1..])) {
|
let opts = match (config::parse_args(os::args[1..])) {
|
||||||
case errors::invalid =>
|
case errors::invalid =>
|
||||||
config::usage();
|
config::usage();
|
||||||
@@ -40,6 +39,12 @@ export fn main() void = {
|
|||||||
// configure logging early
|
// configure logging early
|
||||||
log::tree::set_level(tree::global, opts.debug);
|
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)) {
|
let req = match (config::ingest_cli_opts(opts)) {
|
||||||
case config::help =>
|
case config::help =>
|
||||||
config::usage();
|
config::usage();
|
||||||
|
Reference in New Issue
Block a user