Skip to content

Conversation

sebastianwebber
Copy link
Contributor

This PR adds the clap library and configures the necessary args to parse from the command line, expanding the current option of a single file and adding support for environment variables.

❯ cargo run -- --help Finished dev [unoptimized + debuginfo] target(s) in 0.27s Running `target/debug/pgcat --help` PgCat: Nextgen PostgreSQL Pooler Usage: pgcat [OPTIONS] [CONFIG_FILE] Arguments: [CONFIG_FILE] [env: CONFIG_FILE=] [default: pgcat.toml] Options: -l, --log-level <LOG_LEVEL> [env: LOG_LEVEL=] [default: INFO] -h, --help Print help -V, --version Print version 
This commit adds the clap library and configures the necessary args to parse from the command line, expanding the current option of a single file and adding support for environment variables. Signed-off-by: Sebastian Webber <sebastian@swebber.me>
@sebastianwebber sebastianwebber force-pushed the sebastian/add-cmd-options branch from 3828ee9 to 39a7310 Compare July 18, 2023 20:35
@levkk
Copy link
Contributor

levkk commented Jul 18, 2023

Love it, thank you!

@levkk levkk merged commit 7bdb4e5 into postgresml:main Jul 18, 2023
@sebastianwebber sebastianwebber deleted the sebastian/add-cmd-options branch July 18, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants