dariogoetz / keyboard_layout_optimizer

A keyboard layout optimizer supporting multiple layers. Implemented in Rust.
https://dariogoetz.github.io/keyboard_layout_optimizer/
GNU General Public License v3.0
92 stars 18 forks source link

Fix short option in `random_evaluate` #33

Closed Glitchy-Tozier closed 2 years ago

Glitchy-Tozier commented 2 years ago

Fixes #28. We still can use

cargo build && RUST_LOG=INFO ./target/debug/random_evaluate

like we used to. Now, however, using -n 200 doesn't result in a crash anymore. Instead, we directly supply the number, the same way as we would supply a layout to evaluate.

cargo build && RUST_LOG=INFO ./target/debug/random_evaluate 200

Edit: the first commit somehow sneaked in there. It wasn't supposed to be part of this PR. Only the second commit is relevant.