init
This commit is contained in:
19
src/main.rs
Normal file
19
src/main.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
use image::{ImageBuffer, ImageReader};
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
struct Args {
|
||||
image: PathBuf,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let args = Args::parse();
|
||||
}
|
||||
|
||||
fn parse_image(path: &PathBuf) -> ImageBuffer {
|
||||
ImageReader::open(path)
|
||||
}
|
||||
Reference in New Issue
Block a user