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/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