whoops
This commit is contained in:
parent
5136fc6653
commit
237bff1c70
10
src/main.rs
10
src/main.rs
|
@ -2,6 +2,7 @@
|
|||
|
||||
use gif::{DecodeOptions, Frame};
|
||||
use std::fs::OpenOptions;
|
||||
use std::process::exit;
|
||||
use x11rb::connection::Connection;
|
||||
use x11rb::protocol::xproto::ConnectionExt;
|
||||
use x11rb::protocol::xproto::CreateGCAux;
|
||||
|
@ -23,7 +24,14 @@ impl Drop for Exit<'_>{
|
|||
}
|
||||
|
||||
fn main() {
|
||||
let arg = std::env::args().skip(1).next().unwrap();
|
||||
let args = std::env::args();
|
||||
if args.len() < 2
|
||||
{
|
||||
print!("nice try dink!");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
let arg = args.skip(1).next().unwrap();
|
||||
let input = OpenOptions::new().read(true).open(arg).unwrap(); // Grabs image from arguement
|
||||
|
||||
let mut de_options = DecodeOptions::new();
|
||||
|
|
Loading…
Reference in a new issue