bpaf 0.9.25

A simple Command Line Argument Parser with parser combinators
Documentation
//! Derive for struct with named values that uses positional argument

use bpaf::*;
use std::path::PathBuf;

#[allow(dead_code)]
#[derive(Debug, Clone, Bpaf)]
#[bpaf(options)]
struct Options {
    /// Mysterious value
    #[bpaf(argument("VAL"), fallback(42))]
    value: u32,
    #[bpaf(positional("FILE"))]
    files: Vec<PathBuf>,
}

fn main() {
    let opts = options().run();
    println!("{:#?}", opts);
}