Added the ability to give a post a title.
This commit is contained in:
		| @@ -194,6 +194,7 @@ declare -A command=( | |||||||
|     [h]="Help, show usage information for ${0##*/}." |     [h]="Help, show usage information for ${0##*/}." | ||||||
|     [M]="Post the currently playing music track, requires playerctl." |     [M]="Post the currently playing music track, requires playerctl." | ||||||
|     [p::]="Post from the command line, e.g. ${0##*/} -p \"hello world\" or echo \"Hello world\" | ${0}" |     [p::]="Post from the command line, e.g. ${0##*/} -p \"hello world\" or echo \"Hello world\" | ${0}" | ||||||
|  |     [t:]="Title of your post." | ||||||
|     [v:]="Post visibility, [direct | followers | public | unlisted], default is public." |     [v:]="Post visibility, [direct | followers | public | unlisted], default is public." | ||||||
|     [S]="Scrobble the currently playing music track, requires playerctl." |     [S]="Scrobble the currently playing music track, requires playerctl." | ||||||
| ) | ) | ||||||
| @@ -211,6 +212,9 @@ while [[ $# -gt 0 ]]; do | |||||||
|         -C) |         -C) | ||||||
|             get_oauth_token |             get_oauth_token | ||||||
|             shift;; |             shift;; | ||||||
|  |         -t) | ||||||
|  |             statusSpoiler_text="${2}" | ||||||
|  |             shift 2;; | ||||||
|         -v) |         -v) | ||||||
|             statusVisibility="${2}" |             statusVisibility="${2}" | ||||||
|             shift 2;; |             shift 2;; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user