mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Pass command args manually to cli entrypoint instead of parsing from environment
This commit is contained in:
parent
e3a7fd9246
commit
3bf2458774
2 changed files with 3 additions and 3 deletions
|
|
@ -117,8 +117,8 @@ struct Verbosity {
|
|||
quiet: bool,
|
||||
}
|
||||
|
||||
pub async fn cli_entrypoint() {
|
||||
let mut cli: Cli = Cli::parse();
|
||||
pub async fn main(args: &[String]) {
|
||||
let mut cli: Cli = Cli::parse_from(args);
|
||||
|
||||
if cli.verbosity.verbose || cli.verbosity.quiet {
|
||||
if cli.verbosity.verbose && cli.verbosity.quiet {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue