mirror of
https://gitlab.com/hyask/swaysome.git
synced 2026-01-28 02:17:18 +01:00
Use clap's 'crate_version' macro to avoid further mess
This commit is contained in:
parent
80b791fa2d
commit
9af265efbe
1 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ extern crate serde_json;
|
|||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use clap::{App, Arg, SubCommand};
|
||||
use clap::{App, Arg, SubCommand, crate_version, crate_authors};
|
||||
use std::env;
|
||||
use std::io::Cursor;
|
||||
use std::io::{Read, Write};
|
||||
|
|
@ -265,8 +265,8 @@ fn init_workspaces(stream: &UnixStream, workspace_name: &String) {
|
|||
|
||||
fn main() {
|
||||
let matches = App::new("swaysome")
|
||||
.version("1.1.2")
|
||||
.author("Skia <skia@hya.sk>")
|
||||
.version(crate_version!())
|
||||
.author(crate_authors!())
|
||||
.about("Better multimonitor handling for sway")
|
||||
.subcommand(
|
||||
SubCommand::with_name("init")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue