From c51629a9b83093ff7ca5a44e053d5ea1f95592d5 Mon Sep 17 00:00:00 2001 From: Egor Kovetskiy Date: Tue, 9 Feb 2021 06:58:31 +0300 Subject: [PATCH] bump to 5.2, add note about password in stdin --- README.md | 1 + main.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d6c3ab..ae14136 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,7 @@ mark -h | --help - `-u ` — Use specified username for updating Confluence page. - `-p ` — Use specified password for updating Confluence page. + Specify `-` as password to read password from stdin. - `-l ` — Edit specified Confluence page. If -l is not specified, file should contain metadata (see above). - `-b ` or `--base-url ` – Base URL for Confluence. diff --git a/main.go b/main.go index baa7ce7..85b340a 100644 --- a/main.go +++ b/main.go @@ -32,6 +32,7 @@ Usage: Options: -u Use specified username for updating Confluence page. -p Use specified token for updating Confluence page. + Specify - as password to read password from stdin. -l Edit specified Confluence page. If -l is not specified, file should contain metadata (see above). @@ -52,7 +53,7 @@ Options: ) func main() { - args, err := docopt.Parse(usage, nil, true, "5.1", false) + args, err := docopt.Parse(usage, nil, true, "5.2", false) if err != nil { panic(err) }