aboutsummaryrefslogtreecommitdiffstats
path: root/examples/zotcli.rs
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-05-02 13:58:09 +0200
committerYour Name <you@example.com>2020-05-02 13:58:09 +0200
commite95d9f86d2d9f2e689393f1e486b6250b2b075db (patch)
treecaa5a91769c2581468e76e1a6ac68f64b6c64d35 /examples/zotcli.rs
parentf38b1cf6c5c37ea41d720a76dc928c25e7437546 (diff)
downloadrust-zotapi-e95d9f86d2d9f2e689393f1e486b6250b2b075db.tar.gz
rust-zotapi-e95d9f86d2d9f2e689393f1e486b6250b2b075db.tar.bz2
rust-zotapi-e95d9f86d2d9f2e689393f1e486b6250b2b075db.zip
zotcli: take item body as a file rather than string.
Diffstat (limited to 'examples/zotcli.rs')
-rw-r--r--examples/zotcli.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/zotcli.rs b/examples/zotcli.rs
index 02f51e6..0be566f 100644
--- a/examples/zotcli.rs
+++ b/examples/zotcli.rs
@@ -66,7 +66,7 @@ fn main() {
)
(@subcommand post =>
(about: "Post a new message")
- (@arg BODY: +required "Body of the message")
+ (@arg FILE: "A text file containing the 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")
(@arg GROUP: --group [groups] "Limit distribution to the specified group(s) separated by comma")