aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbt <fbt@fleshless.org>2019-11-26 01:53:22 +0300
committerfbt <fbt@fleshless.org>2019-11-26 01:53:22 +0300
commit2beb1c0638de88160bc2d121c004e8bc4aa33c83 (patch)
tree73bfd510650c394ac6c8a30b698405c3f5ef35b6
parent8804a855b367249e10b9d90b314d557221d168a7 (diff)
downloadufw-tools-2beb1c0638de88160bc2d121c004e8bc4aa33c83.tar.gz
ufw-tools-2beb1c0638de88160bc2d121c004e8bc4aa33c83.zip
these have no reason not to be flags
Signed-off-by: fbt <fbt@fleshless.org>
-rwxr-xr-xufw51
1 files changed, 28 insertions, 23 deletions
diff --git a/ufw b/ufw
index 85e8144..11192fb 100755
--- a/ufw
+++ b/ufw
@@ -386,37 +386,42 @@ main() {
while [[ "$1" ]]; do
case "$1" in
- -h|--help|--usage) usage; return;;
- -D|--screenshot-delay) cfg_scn_delay="$2"; shift;;
- -m|--max-filesize) cfg_max_filesize=$2; shift;;
- -A|--album-name) album_name=$2; shift;;
- -t|--tags) tags=$2; shift;;
-
- -i|--my-ip) action='getmyip';;
- -u|--shorten) action='url';;
-
- -p|--public) flag_private='false';;
- -R|--remove-file) flag_rm='1';;
- -s|--screenshot) flag_scn='1';;
- -S|--short-url) flag_shortlink=1;;
- -P|--page-url) flag_directlink=0;;
- -q|--quiet) flag_quiet=1;;
- -v|--void) flag_void=1;;
-
- --notify) flag_notify=1;;
- --no-notify|-n) flag_notify=0;;
-
- -F|--fullscreen)
+ (-h|--help|--usage) usage; return;;
+ (-D|--screenshot-delay) cfg_scn_delay="$2"; shift;;
+ (-m|--max-filesize) cfg_max_filesize=$2; shift;;
+ (-A|--album-name) album_name=$2; shift;;
+ (-t|--tags) tags=$2; shift;;
+
+ (--tmp-dir) cfg_tmp_dir=$2; shift;;
+ (--url) cfg_service_url=$2; shift;;
+ (--screenshot-ext) cfg_screenshot_ext=$2; shift;;
+ (--max-filesize) cfg_max_filesize=$2; shift;;
+
+ (-i|--my-ip) action='getmyip';;
+ (-u|--shorten) action='url';;
+
+ (-p|--public) flag_private='false';;
+ (-R|--remove-file) flag_rm='1';;
+ (-s|--screenshot) flag_scn='1';;
+ (-S|--short-url) flag_shortlink=1;;
+ (-P|--page-url) flag_directlink=0;;
+ (-q|--quiet) flag_quiet=1;;
+ (-v|--void) flag_void=1;;
+
+ (--notify) flag_notify=1;;
+ (--no-notify|-n) flag_notify=0;;
+
+ (-F|--fullscreen)
flag_scn='1'
flag_scn_fullscreen='1'
;;
- -a|--album-id)
+ (-a|--album-id)
misc_curl_args+=( -F "album_id=$2" )
shift
;;
- -d|--description)
+ (-d|--description)
misc_curl_args+=( -F "description=$2" )
shift
;;