Skip to content

Commit

Permalink
fix defaulting to cwd - ignore program arg
Browse files Browse the repository at this point in the history
  • Loading branch information
xvxx committed Dec 28, 2019
1 parent e87b020 commit 9dee2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const DEFAULT_HOST: &str = "127.0.0.1";
const DEFAULT_PORT: u16 = 7070;

fn main() {
let args: Vec<String> = std::env::args().collect();
let args: Vec<String> = std::env::args().skip(1).collect();
let mut root = ".";
let mut iter = args.iter();
let mut host = DEFAULT_HOST;
Expand Down

0 comments on commit 9dee2bf

Please sign in to comment.