Skip to content

Commit 4f6a467

Browse files
committed
skip first argument (program name)
1 parent 5e16384 commit 4f6a467

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ fn main() -> iced::Result {
206206

207207
let mut state = State::new_multi_modal as fn() -> State;
208208

209-
for arg in std::env::args() {
209+
// Skip first arg (program name)
210+
for arg in std::env::args().skip(1) {
210211
match arg.as_str() {
211212
"--dmenu" => {
212213
state = State::new_drun as fn() -> State;

0 commit comments

Comments
 (0)