Actions
Bug #1395
closed"nfd-status -h" doesn't terminate after printing usage
Start date:
Due date:
% Done:
0%
Estimated time:
Description
When using -h, only help messages is expected. Right now, it also goes on and returns actual status. --help works as expected
[cawka@cawka-mac NFD (new-master)]$ ./build/bin/nfd-status -h
Usage: ./build/bin/nfd-status [options]
Shows NFD Status Information
Displays Version Information (NFD Version, Start Timestamp, Current Timestamp).
Face Status Information via NFD Face Status Protocol (FaceID, URI, Counters).
FIB Information via NFD FIB Enumeration Protocol (Prefix, Nexthop).
If no options are provided, all information is retrieved.
[-v] - retrieve version information
[-f] - retrieve face status information
[-b] - retrieve FIB information
[-h] - print help and exit
General NFD status:
version=1000
startTime=20140323T164119.309000
currentTime=20140323T164817.553000
uptime=418 seconds
nNameTreeEntries=4
nFibEntries=1
nPitEntries=1
nMeasurementsEntries=0
nCsEntries=19
nInInterests=11
nOutInterests=10
nInDatas=19
nOutDatas=10
Faces:
faceid=1 uri=internal:// counters={in={0i 20d} out={12i 0d}}
faceid=6 uri=unix:///private/tmp/nfd.sock counters={in={2i 0d} out={0i 1d}}
FIB:
/localhost/nfd nexthops={faceid=1 (cost=0)}
Actions