tools: deprecate nfd-status command line options

nfd-status command line options are deprecated in favor of
nfdc subcommands such as 'nfdc face list' and 'nfdc status report xml'.

'nfd-status' without command line options is kept as an alias of
'nfdc status report' and is not deprecated.

refs #3780

Change-Id: Ib54b239062b4987295e22c7eb94b75c030f7308a
diff --git a/docs/manpages/nfd-status.rst b/docs/manpages/nfd-status.rst
index a7ec024..732cd86 100644
--- a/docs/manpages/nfd-status.rst
+++ b/docs/manpages/nfd-status.rst
@@ -6,47 +6,46 @@
 
 ::
 
-    nfd-status [options]
+    nfd-status
 
 Description
 -----------
 
-``nfd-status`` is a tool to retrieve and print out NFD version and status information.
+``nfd-status`` is an alias of ``nfdc status report``, which generates a comprehensive report of NFD status.
 
-Options:
---------
+Deprecated Options
+------------------
+
+nfd-status used to support the following command line options.
+They have been deprecated and will be removed in a future release of NFD.
+
+``-v``
+  Print general status. Use ``nfdc status show`` instead.
+
+``-c``
+  Print channel list. Use ``nfdc channel list`` instead.
+
+``-f``
+  Print face list. Use ``nfdc face list`` instead.
+
+``-b``
+  Print FIB entries. Use ``nfdc fib list`` instead.
+
+``-r``
+  Print RIB entries. Use ``nfdc route list`` instead.
+
+``-s``
+  Print strategy choices. Use ``nfdc strategy list`` instead.
+
+``-x``
+  Generate a comprehensive report of NFD status in XML format. Use ``nfdc status report xml`` instead.
 
 ``-h``
   Print usage information.
 
-``-v``
-  Retrieve version information.
-
-``-c``
-  Retrieve channel status information.
-
-``-f``
-  Retrieve face status information.
-
-``-b``
-  Retrieve FIB information.
-
-``-r``
-  Retrieve RIB information.
-
-``-s``
-  Retrieve configured strategy choice for NDN namespaces.
-
-``-x``
-  Output NFD status information in XML format.
-
 ``-V``
   Show version information of nfd-status and exit.
 
-If no options are provided, all information is retrieved.
-
-If -x is provided, other options(-v, -c, etc.) are ignored, and all information is printed in XML format.
-
 Exit Codes
 ----------
 
@@ -55,58 +54,3 @@
 1: An unspecified error occurred
 
 2: Malformed command line
-
-Examples
---------
-
-Get all status information from NFD::
-
-    $ nfd-status
-
-    General NFD status:
-                     nfdId=/tmp-identity/%80%80%BF%9A/KEY/ksk-1457726482439/ID-CERT
-                   version=0.4.1-10-g4f1afac
-                 startTime=20160426T224102.791000
-               currentTime=20160426T224108.813000
-                    uptime=6 seconds
-          nNameTreeEntries=11
-               nFibEntries=2
-               nPitEntries=2
-      nMeasurementsEntries=0
-                nCsEntries=2
-              nInInterests=5
-             nOutInterests=5
-                  nInDatas=7
-                 nOutDatas=4
-                  nInNacks=0
-                 nOutNacks=0
-    Channels:
-      tcp4://0.0.0.0:6363
-      tcp6://[::]:6363
-      udp4://0.0.0.0:6363
-      udp6://[::]:6363
-      unix:///private/var/run/nfd.sock
-      ws://[::]:9696
-    Faces:
-      faceid=1 remote=internal:// local=internal:// counters={in={0i 9d 0n 4830B} out={8i 0d 0n 1232B}} local permanent point-to-point
-      faceid=254 remote=contentstore:// local=contentstore:// counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} local permanent point-to-point
-      faceid=255 remote=null:// local=null:// counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} local permanent point-to-point
-      faceid=256 remote=udp4://224.0.23.170:56363 local=udp4://10.134.195.206:56363 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} non-local permanent multi-access
-      faceid=257 remote=udp4://224.0.23.170:56363 local=udp4://127.0.0.1:56363 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} non-local permanent multi-access
-      faceid=258 remote=ether://[01:00:5e:00:17:aa] local=dev://awdl0 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} non-local permanent multi-access
-      faceid=259 remote=ether://[01:00:5e:00:17:aa] local=dev://en2 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} non-local permanent multi-access
-      faceid=260 remote=ether://[01:00:5e:00:17:aa] local=dev://en1 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} non-local permanent multi-access
-      faceid=261 remote=ether://[01:00:5e:00:17:aa] local=dev://en0 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} non-local permanent multi-access
-      faceid=262 remote=ether://[01:00:5e:00:17:aa] local=dev://bridge0 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} non-local permanent multi-access
-      faceid=263 remote=fd://36 local=unix:///private/var/run/nfd.sock counters={in={5i 0d 0n 998B} out={0i 4d 0n 2511B}} local on-demand point-to-point
-      faceid=264 remote=fd://37 local=unix:///private/var/run/nfd.sock counters={in={3i 0d 0n 146B} out={0i 2d 0n 992B}} local on-demand point-to-point
-    FIB:
-      /localhost/nfd/rib nexthops={faceid=263 (cost=0)}
-      /localhost/nfd nexthops={faceid=1 (cost=0)}
-    RIB:
-      /localhost/nfd/rib route={faceid=263 (origin=0 cost=0 ChildInherit)}
-    Strategy choices:
-      / strategy=/localhost/nfd/strategy/best-route/%FD%04
-      /localhost strategy=/localhost/nfd/strategy/multicast/%FD%01
-      /ndn/broadcast strategy=/localhost/nfd/strategy/multicast/%FD%01
-      /localhost/nfd strategy=/localhost/nfd/strategy/best-route/%FD%04
diff --git a/tools/nfd-status.sh b/tools/nfd-status.sh
index a63f5ca..6b9336e 100755
--- a/tools/nfd-status.sh
+++ b/tools/nfd-status.sh
@@ -1,2 +1,9 @@
 #!@BASH@
-$(dirname "$0")/nfdc legacy-nfd-status "$@"
+if [[ $# -gt 0 ]]; then
+  echo 'nfd-status command line options are deprecated.' >&2
+  echo 'Use the `nfdc` subcommands instead. See `nfdc help` for details.' >&2
+  exec "$(dirname "$0")/nfdc" legacy-nfd-status "$@"
+else
+  # nfd-status is an alias of `nfdc status report`
+  exec "$(dirname "$0")/nfdc" status report
+fi