Skip to main content

Add a new command-line flag ‘–best-against-background’

ID
b8f38e6
date
2024-05-12 10:08:12+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
40ef7df
message
Add a new command-line flag '--best-against-background'
changed files
1 file, 5 additions

Changed files

src/cli.rs (1115) → src/cli.rs (1309)

diff --git a/src/cli.rs b/src/cli.rs
index b51a0ad..c4930c8 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -21,6 +21,11 @@ pub fn app() -> clap::Command {
                 .default_value("5"),
         )
         .arg(
+            Arg::new("BACKGROUND_HEX")
+                .long("best-against-bg")
+                .help("find a single colour that will look best against this background")
+        )
+        .arg(
             Arg::new("no-palette")
                 .long("no-palette")
                 .help("Just print the hex values, not colour previews")