From 76952ee30994fd64ee4523f89a0a9c7a1108e0d8 Mon Sep 17 00:00:00 2001 From: fbt Date: Tue, 23 Jun 2015 23:25:48 +0300 Subject: [PATCH] description support --- sup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sup b/sup index c679193..d9dbcbd 100755 --- a/sup +++ b/sup @@ -29,6 +29,7 @@ sup.usage() { -R # Remove the file after uploading. -s # Make a screenshot and upload it instead of a file. -F # Make a fullscreen shot instead of prompting for a window/area. Implies -s. + -d # Supply a dexcription. -D # Delay the shot by seconds. -p # Make the file private. Requires \$secret to be set in the config. -u # Generate a shortlink from URL. @@ -92,6 +93,7 @@ sup.upload() { -F upload_mode='api' \ -F flag_private="$flag_private" \ -F short="$flag_shortlink" \ + -F description="$description" \ -F secret="$secret" \ -F submit="" \ -A 'zerofiles.org upload script' \ @@ -209,6 +211,7 @@ main() { -R|--remove-file) flag_rm='1';; -s|--screenshot) flag_scrot='1';; + -d|--description) description="$2"; shift;; -D|--screenshot-delay) cfg_scrot_delay="$2"; shift;; -F|--fullscreen) flag_scrot='1'