description support

This commit is contained in:
Jack L. Frost 2015-06-23 23:25:48 +03:00
parent 828e6a3c53
commit 76952ee309

3
sup
View File

@ -29,6 +29,7 @@ sup.usage() {
-R # Remove the file after uploading. -R # Remove the file after uploading.
-s # Make a screenshot and upload it instead of a file. -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. -F # Make a fullscreen shot instead of prompting for a window/area. Implies -s.
-d # Supply a dexcription.
-D <num> # Delay the shot by <num> seconds. -D <num> # Delay the shot by <num> seconds.
-p # Make the file private. Requires \$secret to be set in the config. -p # Make the file private. Requires \$secret to be set in the config.
-u # Generate a shortlink from URL. -u # Generate a shortlink from URL.
@ -92,6 +93,7 @@ sup.upload() {
-F upload_mode='api' \ -F upload_mode='api' \
-F flag_private="$flag_private" \ -F flag_private="$flag_private" \
-F short="$flag_shortlink" \ -F short="$flag_shortlink" \
-F description="$description" \
-F secret="$secret" \ -F secret="$secret" \
-F submit="" \ -F submit="" \
-A 'zerofiles.org upload script' \ -A 'zerofiles.org upload script' \
@ -209,6 +211,7 @@ main() {
-R|--remove-file) flag_rm='1';; -R|--remove-file) flag_rm='1';;
-s|--screenshot) flag_scrot='1';; -s|--screenshot) flag_scrot='1';;
-d|--description) description="$2"; shift;;
-D|--screenshot-delay) cfg_scrot_delay="$2"; shift;; -D|--screenshot-delay) cfg_scrot_delay="$2"; shift;;
-F|--fullscreen) -F|--fullscreen)
flag_scrot='1' flag_scrot='1'