Read command line arguments
Rust
#![allow(unused)]
fn main() {
let args = std::env::args(); // iterator
}
Python
import sys
args = sys.argv # list
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#![allow(unused)]
fn main() {
let args = std::env::args(); // iterator
}
import sys
args = sys.argv # list