add -U option that updates local cache before opening menu - bitreich-tardis - Front-end for navigating bitreich memes and TV dimensions HTML git clone git://bitreich.org/bitreich-tardis git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tardis DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 0fb65a59aeff66dd3e9c8b5d3a6eeb91b6c2a848 DIR parent 82ecf51b8a3dd34f14841e293fbab24df5bed0df HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sun, 21 Feb 2021 21:24:08 +0100 add -U option that updates local cache before opening menu Diffstat: M tardis | 5 +++-- M tardis.1 | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) --- DIR diff --git a/tardis b/tardis @@ -13,7 +13,7 @@ TARDIS_PLUMB=${TARDIS_PLUMB:-xdg-open} TARDIS_VIDEO=${TARDIS_VIDEO:-mpv} usage() { - printf 'usage: %s [-cu]\n' "${0##*/}" 1>&2 + printf 'usage: %s [-cuU]\n' "${0##*/}" 1>&2 exit 1 } @@ -43,9 +43,10 @@ init() { init clip="" -while getopts uc arg; do +while getopts uUc arg; do case ${arg} in u) update; exit 0 ;; + U) update ;; c) clip=1 ;; *) usage ;; esac DIR diff --git a/tardis.1 b/tardis.1 @@ -8,6 +8,7 @@ .Nm .Op Fl c .Op Fl u +.Op Fl U .Sh DESCRIPTION .Nm allows interactive selection and search in Bitreich memes and TV @@ -33,6 +34,8 @@ Copy meme hashtag to the primary X selection, and the meme url to the X clipboard. .It Fl u Update local cache and exit. +.It Fl U +Update local cache before showing interactive menu. .El .Sh SEE ALSO .Xr dmenu 1 ,