Parse command line arguments
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user