From d8f3c44371051e661c11b58f47d7a82b8d8eb7b0 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sun, 11 Dec 2022 01:03:57 +0300 Subject: [PATCH] update readme Signed-off-by: R4SAS --- README.md | 9 +++++---- README.rst | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f3f9ce0..26bbf91 100644 --- a/README.md +++ b/README.md @@ -99,15 +99,16 @@ To retrieve a paste from a server, you need to use `get` command with the paste Paste info must be formated as `pasteID#Passphrase` or just use full URL to a paste. Example: ```bash -pbincli get xxx#yyy ### receive paste xxx from https://paste.i2pd.xyz/ by default -pbincli get https://example.com/?xxx#yyy ### receive paste xxx from https://example.com/ +pbincli get "xxx#yyy" ### receive paste xxx from https://paste.i2pd.xyz/ by default +pbincli get "https://example.com/?xxx#yyy" ### receive paste xxx from https://example.com/ ``` ## Deletion -To delete a paste from a server, use `delete` command with required `-p` and `-t` options: +To delete a paste from a server, use `delete` command with paste info: ```bash -pbincli delete -p xxx -t deletetoken +pbincli delete "pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://paste.i2pd.xyz/ by default +pbincli delete "https://example.com/?pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://example.com/ ``` If you need to delete a paste on different server than the configured one, use `-s` option together with the instance URL. diff --git a/README.rst b/README.rst index 2db4237..c347c73 100644 --- a/README.rst +++ b/README.rst @@ -172,17 +172,18 @@ Paste info must be formated as ``pasteID#Passphrase`` or just use full URL to a .. code-block:: bash - pbincli get xxx#yyy ### receive paste xxx from https://paste.i2pd.xyz/ by default - pbincli get https://example.com/?xxx#yyy ### receive paste xxx from https://example.com/ + pbincli get "xxx#yyy" ### receive paste xxx from https://paste.i2pd.xyz/ by default + pbincli get "https://example.com/?xxx#yyy" ### receive paste xxx from https://example.com/ Deletion -------- -To delete a paste from a server, use ``delete`` command with required ``-p`` and ``-t`` options: +To delete a paste from a server, use ``delete`` command with paste info: .. code-block:: bash - pbincli delete -p xxx -t deletetoken + pbincli delete "pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://paste.i2pd.xyz/ by default + pbincli delete "https://example.com/?pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://example.com/ If you need to delete a paste on different server than the configured one, use ``-s`` option together with the instance URL.