Parse command line arguments

This commit is contained in:
2022-05-24 17:07:08 +02:00
parent 88ad047315
commit ccaa902be8
3 changed files with 155 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
extern crate smithay_client_toolkit as sctk;
use calloop::{timer::Timer, EventLoop};
use clap::Parser;
use sctk::reexports::client::protocol::{wl_shm, wl_surface};
use sctk::shm::AutoMemPool;
use sctk::window::{Event as WEvent, FallbackFrame};
@@ -13,9 +14,14 @@ mod svg_clock;
use config::{get_config, Config};
use svg_clock::{cache_hour_name_paths, gen_svg, svg_to_usvg};
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
struct Args {}
sctk::default_environment!(SeasonalClock, desktop);
fn main() {
Args::parse();
let config = get_config();
run_windowed(&config);