diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2024-04-24 20:40:47 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2024-04-24 20:40:47 +0200 |
| commit | 5548c9f4a234db1819cf912d42664b5eb83c2de9 (patch) | |
| tree | 6d15bf3d196da18ae10267951121dd27c2c22e2c /src/main.rs | |
| parent | 1a0fde95fc2403041f9f477f4220618ee916853b (diff) | |
Format with rustfmt
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 6b7c181..347e144 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,25 +10,33 @@ fn parse_args() -> Result<bool, String> { .short('h') .long("help") .description("display this and exit") - .build().unwrap()); + .build() + .unwrap(), + ); let version_idx = options.push( args::OptionBuilder::default() .short('V') .long("version") .description("display version and exit") - .build().unwrap()); + .build() + .unwrap(), + ); let verbose_idx = options.push( args::OptionBuilder::default() .long("verbose") .description("be verbose") - .build().unwrap()); + .build() + .unwrap(), + ); let test_idx = options.push( args::OptionBuilder::default() .short('t') .long("test") .description("testing") .value(args::ValueRequirement::Required("FILE")) - .build().unwrap()); + .build() + .unwrap(), + ); let parser = args::ShortAndLongParser::new(); let args = parser.run(&mut options, std::env::args())?; |
