Skip to content

Commit

Permalink
Use Cargo metadata to build help
Browse files Browse the repository at this point in the history
  • Loading branch information
larsnaesbye committed Jan 3, 2024
1 parent 6f6a63c commit 6a5bada
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sbf2rnx"
version = "0.1.0"
authors = ["Lars Næsbye Christensen <[email protected]>"]
edition = "2021"
description = "Converts SBF to RINEX"

[dependencies]
rinex = "0.15"
Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ pub enum Error {
}

pub fn main() -> Result<(), Error> {
let matches = Command::new("sbf2rnx")
.version("0.1")
.author("Lars Næsbye Christensen <[email protected]>")
.about("Does awesome things")
let matches = Command::new(env!("CARGO_PKG_NAME"))
.version(env!("CARGO_PKG_VERSION"))
.author(env!("CARGO_PKG_AUTHORS"))
.about(env!("CARGO_PKG_DESCRIPTION"))
.arg(arg!(--i <VALUE>).required(true))
.get_matches();
let filepath: String = matches.get_one::<String>("i").unwrap().to_string();
Expand Down

0 comments on commit 6a5bada

Please sign in to comment.