manpages: build manpages
This commit also imports manpages of ndnpeek and ndnpoke from
NFD:commit:6ee6e07e6f1c068f7658a616982ab785f3bd8b22.
refs #2816
Change-Id: Ibc7bbbbd063af0107fa5883baccc12c7789bcc72
diff --git a/manpages/ndnpeek.rst b/manpages/ndnpeek.rst
new file mode 100644
index 0000000..1f36263
--- /dev/null
+++ b/manpages/ndnpeek.rst
@@ -0,0 +1,56 @@
+ndnpeek
+=======
+
+Usage
+-----
+
+::
+
+ ndnpeek [-h] [-f] [-r] [-m min] [-M max] [-l lifetime] [-p] [-w timeout] name
+
+Description
+-----------
+
+``ndnpeek`` is a simple consumer program that sends one Interest and expects one Data
+packet in response. The full Data packet (in TLV format) is written to stdout. The
+program terminates with return code 0 if Data arrives, and with return code 1 when timeout
+occurs.
+
+``name`` is interpreted as the Interest name.
+
+Options
+-------
+
+``-h``
+ Print help and exit
+
+``-f``
+ If specified, set ``MustBeFresh`` selector in the Interest packet.
+
+``-r``
+ Set ``ChildSelector=1`` (the rightmost child) selector.
+
+``-m``
+ Set ``min`` as the ``MinSuffixComponents`` selector.
+
+``-M``
+ Set ``max`` as the ``MaxSuffixComponents`` selector.
+
+``-l``
+ Set ``lifetime`` (in milliseconds) as the ``InterestLifetime``.
+
+``-p``
+ If specified, print the received payload only, not the full packet.
+
+``-w``
+ Timeout after ``timeout`` milliseconds.
+
+
+Examples
+--------
+
+Send Interest for ``ndn:/app1/video`` and print the received payload only
+
+::
+
+ ndnpeek -p ndn:/app1/video