mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
Do not panic if command line have unreconginzed option.
Return 1 if no command is parsed.
This commit is contained in:
@@ -112,7 +112,7 @@ impl Main {
|
||||
pub fn run(&mut self) -> i32 {
|
||||
self.cmd = opts::parse_cmd();
|
||||
if self.cmd.is_none() {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
let cmd = self.cmd.as_ref().unwrap();
|
||||
self.settings = Some(SettingStore::default());
|
||||
|
||||
Reference in New Issue
Block a user