target letterset as arg
This commit is contained in:
parent
1222162bd6
commit
0ce60e52ff
2 changed files with 2 additions and 6 deletions
|
|
@ -6,4 +6,4 @@ edition = "2024"
|
|||
[dependencies]
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
# debug = true
|
||||
|
|
|
|||
|
|
@ -18,11 +18,7 @@ fn main() {
|
|||
"{:#?}",
|
||||
solve(
|
||||
&dictionary,
|
||||
LetterSet::from(
|
||||
env::args()
|
||||
.nth(1)
|
||||
.expect("give me the letters you want NOW")
|
||||
)
|
||||
env::args().nth(1).map_or(LetterSet::FULL, LetterSet::from)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue