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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user