mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
bump to 5.2, add note about password in stdin
This commit is contained in:
parent
3d95418d9f
commit
c51629a9b8
@ -259,6 +259,7 @@ mark -h | --help
|
|||||||
|
|
||||||
- `-u <username>` — Use specified username for updating Confluence page.
|
- `-u <username>` — Use specified username for updating Confluence page.
|
||||||
- `-p <password>` — Use specified password for updating Confluence page.
|
- `-p <password>` — Use specified password for updating Confluence page.
|
||||||
|
Specify `-` as password to read password from stdin.
|
||||||
- `-l <url>` — Edit specified Confluence page.
|
- `-l <url>` — Edit specified Confluence page.
|
||||||
If -l is not specified, file should contain metadata (see above).
|
If -l is not specified, file should contain metadata (see above).
|
||||||
- `-b <url>` or `--base-url <url>` – Base URL for Confluence.
|
- `-b <url>` or `--base-url <url>` – Base URL for Confluence.
|
||||||
|
3
main.go
3
main.go
@ -32,6 +32,7 @@ Usage:
|
|||||||
Options:
|
Options:
|
||||||
-u <username> Use specified username for updating Confluence page.
|
-u <username> Use specified username for updating Confluence page.
|
||||||
-p <token> Use specified token for updating Confluence page.
|
-p <token> Use specified token for updating Confluence page.
|
||||||
|
Specify - as password to read password from stdin.
|
||||||
-l <url> Edit specified Confluence page.
|
-l <url> Edit specified Confluence page.
|
||||||
If -l is not specified, file should contain metadata (see
|
If -l is not specified, file should contain metadata (see
|
||||||
above).
|
above).
|
||||||
@ -52,7 +53,7 @@ Options:
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user