mar 0.2.0

Library for reading and writing Mozilla Archive files
Documentation
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use std::env::args;

fn main() {
    let mut args = args().skip(1);

    match args.next().as_deref() {
        Some("-X") => {
            let path = args.next().expect("-X requires a file name");
            mar::extract::extract(path).unwrap();
        }

        Some(x) => eprintln!("Unrecognized option {:?}", x),

        _ => eprintln!("Usage: [TODO]"),
    }
}