mirror of https://gitlab.com/famedly/conduit
Add argument parser for the conduit executable
Allow fetching the version with `conduit --version`. Fixes #285.merge-requests/551/head^2
parent
88fbd5b294
commit
9a81a49c6a
@ -0,0 +1,13 @@
|
||||
//! Integration with `clap`
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
/// Command line arguments
|
||||
#[derive(Parser)]
|
||||
#[clap(about, version)]
|
||||
pub struct Args {}
|
||||
|
||||
/// Parse command line arguments into structured data
|
||||
pub fn parse() -> Args {
|
||||
Args::parse()
|
||||
}
|
Loading…
Reference in New Issue