[go: up one dir, main page]

duct 0.13.3

a library for running child processes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![deny(warnings)]

use std::env::args;
use std::process::exit;

fn main() {
    let status = args()
        .nth(1)
        .map(|s| i32::from_str_radix(&s, 10).expect("not a valid status"))
        .unwrap_or(0);
    exit(status);
}