diff options
Diffstat (limited to 'src/clap.rs')
-rw-r--r-- | src/clap.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/clap.rs b/src/clap.rs index 2a03e9b4..5f6d7667 100644 --- a/src/clap.rs +++ b/src/clap.rs @@ -197,6 +197,36 @@ entire query by default.\n\n", Sets the location of the config file. Expects a config file in the TOML format. If it doesn't exist, one is created.\n\n\n", ); + let color = Arg::with_name("color") + .long("color") + .takes_value(true) + .value_name("COLOR SCHEME") + .help("Use a color scheme, use --help for supported values.") + .long_help( + "\ +Use a pre-defined color scheme. Currently supported values are: + ++------------------------------------------------------------+ +| default | ++------------------------------------------------------------+ +| default-light (default but for use with light backgrounds) | ++------------------------------------------------------------+ +| gruvbox (a bright theme with 'retro groove' colors) | ++------------------------------------------------------------+ +| gruvbox-light (gruvbox but for use with light backgrounds) | ++------------------------------------------------------------+ + +Defaults to \"default\". +\n\n", + ) + .possible_values(&[ + "default", + "default-light", + "gruvbox", + "gruvbox-light", + "nord", + ]) + .hide_possible_values(true); let default_time_value = Arg::with_name("default_time_value") .short("t") .long("default_time_value") @@ -313,6 +343,7 @@ The minimum is 1s (1000), and defaults to 15s (15000).\n\n\n", .arg(battery) .arg(case_sensitive) .arg(config_location) + .arg(color) .arg(debug) .arg(default_time_value) .arg(default_widget_count) |