Add short option `-h` for http-upload.

v0.5
Martin Dosch 2 years ago
parent 19ee89197e
commit a6c0fe3ca8
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -1,6 +1,8 @@
# Changelog
## Unreleased
### Added
- Add short option `-h` for http-upload.
### Changed
- Fix Ox key generation.

@ -90,7 +90,7 @@ Usage: go-sendxmpp [-cdilnt] [-a value] [-f value] [--help] [--http-upload value
-f, --file=value Set configuration file. (Default:
~/.config/go-sendxmpp/sendxmpprc)
--help Show help.
--http-upload=value
-h, --http-upload=value
Send a file via http-upload.
-i, --interactive Interactive mode (for use with e.g. 'tail -f').
-j, --jserver=value

@ -84,7 +84,7 @@ func main() {
// Define command line flags.
flagHelp := getopt.BoolLong("help", 0, "Show help.")
flagHTTPUpload := getopt.StringLong("http-upload", 0, "", "Send a file via http-upload.")
flagHTTPUpload := getopt.StringLong("http-upload", 'h', "", "Send a file via http-upload.")
flagDebug := getopt.BoolLong("debug", 'd', "Show debugging info.")
flagServer := getopt.StringLong("jserver", 'j', "", "XMPP server address.")
flagUser := getopt.StringLong("username", 'u', "", "Username for XMPP account.")

@ -36,7 +36,7 @@ Set configuration file\. (Default: ~/\.config/go\-sendxmpp/config)
.P
Show help\.
.TP
\fB\-\-http\-upload=\fR[\fIvalue\fR]:
\fB\-h\fR, \fB\-\-http\-upload=\fR[\fIvalue\fR]:
.P
Send a file via http\-upload\.

@ -133,7 +133,7 @@ file location is specified with <code>-f</code> or <code>--file</code>.</p>
<dl>
<dt>
<code>--http-upload=</code>[<var>value</var>]:</dt>
<code>-h</code>, <code>--http-upload=</code>[<var>value</var>]:</dt>
<dd></dd>
</dl>

@ -36,7 +36,7 @@ Set configuration file. (Default: ~/.config/go-sendxmpp/config)
Show help.
* `--http-upload=`[<value>]:
* `-h`, `--http-upload=`[<value>]:
Send a file via http-upload.

Loading…
Cancel
Save