|
|
@ -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 <num> # Delay the shot by <num> 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' |
|
|
|