summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2020-03-22 18:12:09 +0300
committerSergey Matveev <stargrave@stargrave.org>2020-03-22 18:12:09 +0300
commitc2a5b57cb40ea08fa13ec7d1591881d4b19bab1e (patch)
tree454e5d18d4639aadd333546aafdbab09df264451
parent0ebead641ed9643e3d26275fc7d3e9bd89eee0c6 (diff)
downloadpyderasn-c2a5b57cb40ea08fa13ec7d1591881d4b19bab1e.tar.xz
Mention --browse
-rw-r--r--doc/news.rst3
-rwxr-xr-xpyderasn.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/news.rst b/doc/news.rst
index 9444ed5..10befb1 100644
--- a/doc/news.rst
+++ b/doc/news.rst
@@ -11,7 +11,8 @@ News
* ``hexdump()`` (``hexdump -C`` like output) and ``ascii_visualize()``
(visualize ASCII printable characters, like in ``hexdump -C``) pretty
printing functions appeared
-* Experimental ASN.1 interactive terminal browser.
+* Experimental ASN.1 interactive terminal browser (``--browse`` and
+ ``pyderasn.browse``).
You will need `urwid package <http://urwid.org/>`__ to use it
.. _release7.3:
diff --git a/pyderasn.py b/pyderasn.py
index 4a1244c..a4b7deb 100755
--- a/pyderasn.py
+++ b/pyderasn.py
@@ -7486,6 +7486,8 @@ def browse(raw, obj, oid_maps=()):
If you press **d**, then current element will be saved in the
current directory under its decode path name (adding ".0", ".1", etc
suffix if such file already exists). **D** will save it with explicit tag.
+
+ You can also invoke it with ``--browse`` command line argument.
"""
from copy import deepcopy
from os.path import exists as path_exists