Skip to content

Commit 6514c3a

Browse files
committed
Don't panic if there's no command line arguments
1 parent b6d91a2 commit 6514c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustbook/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn main() {
5050
let mut term = Term::new();
5151
let cmd = os::args();
5252

53-
if cmd.len() < 1 {
53+
if cmd.len() <= 1 {
5454
help::usage()
5555
} else {
5656
match subcommand::parse_name(&cmd[1][]) {

0 commit comments

Comments
 (0)