ChrisTitusTech / linutil

Chris Titus Tech's Linux Toolbox - Linutil is a distro-agnostic toolbox designed to simplify everyday Linux tasks.
https://christitus.com
MIT License
2.81k stars 227 forks source link

fix: CLI arguments not working #935

Open zdiff opened 1 week ago

zdiff commented 1 week ago

Type of Change

Description

Fixes linutil --help command

Testing

Before PR

./target/release/linutil --help
error: unexpected argument found

After PR

 ./target/release/linutil --help
Usage: 

Options:
  -c, --config <CONFIG>      Path to the configuration file
  -t, --theme <THEME>        Set the theme to use in the application [default: default] [possible values: default, compatible]
  -y, --skip-confirmation    Skip confirmation prompt before executing commands
      --override-validation  Show all available options, disregarding compatibility checks (UNSAFE)
      --size-bypass          Bypass the terminal size limit
  -h, --help                 Print help

Issues / other PRs related

Checklist

jeevithakannan2 commented 1 week ago

On second thought we can keep the default-features. Default features is actually good with colors and suggestions, no reason to remove them