diff options
author | Euro20179 <f> | 2021-03-02 15:57:22 -0800 |
---|---|---|
committer | Euro20179 <f> | 2021-03-02 15:57:22 -0800 |
commit | e6b5bfc163ca1cca6b212356e1a4fc3d97bd0ea2 (patch) | |
tree | d9af8f979ed302e800b8d4113385f8edc22c432a | |
parent | 77383a459635ee748d5312e17810f7159414930a (diff) | |
download | ytfzf-e6b5bfc163ca1cca6b212356e1a4fc3d97bd0ea2.tar.gz |
more code prettification
-rwxr-xr-x | ytfzf | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -457,8 +457,7 @@ parse_opt () { usageinfo exit 2; ;; - esac - ;; + esac ;; #Short options h) helpinfo exit ;; @@ -469,12 +468,14 @@ parse_opt () { d) YTFZF_PLAYER="youtube-dl" YTFZF_PLAYER_FORMAT="youtube-dl -f " ;; + f) show_format=1 ;; H) get_history ;; x) [ -e "$history_file" ] && rm "$history_file" && touch "$history_file" && printf "History has been cleared\n" exit ;; + a) auto_select=1 ;; r) random_select=1 ;; @@ -491,10 +492,10 @@ parse_opt () { n) link_count="$OPTARG" ;; U) [ -p "$FIFO" ] && preview_img "$OPTARG"; exit; - # This option is reserved for the script, to show image previews # Not to be used by explicitly ;; + *) usageinfo exit 2 ;; |