mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Update dependencies and improve CLI argument handling
- Updated various dependencies in Cargo.toml and Cargo.lock, including `env_logger`, `fs-err`, and `clap`, to their latest versions for enhanced functionality and security. - Refactored CLI argument handling in `build.rs` and `mod.rs` to align with the new `clap` version, improving error reporting and verbosity options. - Added new packages such as `anstream`, `colorchoice`, and `jiff` to enhance project capabilities.
This commit is contained in:
parent
249e26367b
commit
8ede87e1cf
7 changed files with 267 additions and 152 deletions
|
|
@ -50,7 +50,7 @@ impl BuildCommand {
|
|||
(None, None) => {
|
||||
BuildCommand::command()
|
||||
.error(
|
||||
clap::ErrorKind::MissingRequiredArgument,
|
||||
clap::error::ErrorKind::MissingRequiredArgument,
|
||||
"one of the following arguments must be provided: \n --output <OUTPUT>\n --plugin <PLUGIN>",
|
||||
)
|
||||
.exit();
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ impl Options {
|
|||
#[derive(Debug, Parser)]
|
||||
pub struct GlobalOptions {
|
||||
/// Sets verbosity level. Can be specified multiple times.
|
||||
#[clap(long("verbose"), short, global(true), parse(from_occurrences))]
|
||||
#[clap(long("verbose"), short, global(true), action = clap::ArgAction::Count)]
|
||||
pub verbosity: u8,
|
||||
|
||||
/// Set color behavior. Valid values are auto, always, and never.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue