1
0
mirror of https://github.com/jht5945/finding.git synced 2025-12-28 21:50:04 +08:00

new_and_parse_args

This commit is contained in:
2019-08-04 22:28:58 +08:00
parent 2593d3391c
commit cc2387be23
2 changed files with 7 additions and 2 deletions

View File

@@ -239,8 +239,7 @@ fn find_text_files(options: &Options, dir_path: &Path) {
fn main() -> XResult<()> {
let mut options = Options::new();
options.parse_args().ok();
let options = Options::new_and_parse_args()?;
if options.version {
print_version();