aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEuro20179 <f>2021-03-02 15:57:22 -0800
committerEuro20179 <f>2021-03-02 15:57:22 -0800
commite6b5bfc163ca1cca6b212356e1a4fc3d97bd0ea2 (patch)
treed9af8f979ed302e800b8d4113385f8edc22c432a
parent77383a459635ee748d5312e17810f7159414930a (diff)
downloadytfzf-e6b5bfc163ca1cca6b212356e1a4fc3d97bd0ea2.tar.gz
more code prettification
-rwxr-xr-xytfzf7
1 files changed, 4 insertions, 3 deletions
diff --git a/ytfzf b/ytfzf
index d1fb370..e6a70de 100755
--- a/ytfzf
+++ b/ytfzf
@@ -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 ;;
Un proyecto texto-plano.xyz