Skip to content

Commit c8d768a

Browse files
committed
Synchronize cargo metadata with clap
1 parent 1489115 commit c8d768a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern crate reqwest;
55
extern crate tempfile;
66
extern crate tokio;
77
extern crate users;
8-
use clap::App;
8+
use clap::{App,crate_version,crate_name,crate_authors};
99
use std::fs::File;
1010
use std::io::prelude::*;
1111
use std::io::SeekFrom;
@@ -113,10 +113,10 @@ fn is_outdated(time: SystemTime) -> bool {
113113

114114
#[tokio::main]
115115
async fn main() {
116-
let matches = App::new("authorized-keys-github")
117-
.version("0.1")
118-
.author("Keno Fischer <[email protected]>")
119-
.about("Retrieve SSH keys from GitHub auth local caching")
116+
let matches = App::new(crate_name!())
117+
.version(crate_version!())
118+
.author(crate_authors!("\n"))
119+
.about("Retrieve SSH keys from GitHub auth with local caching")
120120
.args_from_usage(
121121
"--fp=[fp] 'The fingerprint for the requested key'
122122
--keys-dir=[kd] 'The keys directory (default: /var/keys)'

0 commit comments

Comments
 (0)