aboutsummaryrefslogtreecommitdiffstats
path: root/examples/zotcli.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-06-12 14:40:56 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-06-12 14:41:55 +0200
commit3404e82e40ffd1055d89d72abe0e36bc8b24a656 (patch)
tree0580021f778a93021fed11febfe8082601a29949 /examples/zotcli.rs
parent2f600bea194b053b310a181857c5d801471fe7be (diff)
downloadrust-zotapi-3404e82e40ffd1055d89d72abe0e36bc8b24a656.tar.gz
rust-zotapi-3404e82e40ffd1055d89d72abe0e36bc8b24a656.tar.bz2
rust-zotapi-3404e82e40ffd1055d89d72abe0e36bc8b24a656.zip
zotcli: Handle attaching media to posts.
Diffstat (limited to 'examples/zotcli.rs')
-rw-r--r--examples/zotcli.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/zotcli.rs b/examples/zotcli.rs
index 2599531..0925a1f 100644
--- a/examples/zotcli.rs
+++ b/examples/zotcli.rs
@@ -74,6 +74,7 @@ fn main() {
(about: "Post a new message")
(@arg BODY: +required "Body of the message")
(@arg TITLE: --title +takes_value "Set a title for the message")
+ (@arg ATTACH: --attach [FILE] "Attach a file or image to the post")
)
)
.get_matches();