Project

General

Profile

Actions

Bug #1395

closed

"nfd-status -h" doesn't terminate after printing usage

Added by Alex Afanasyev about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Tools
Target version:
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 #1

Updated by Junxiao Shi about 10 years ago

  • Subject changed from Small bug in nfd-status to nfd-status -h"
Actions #2

Updated by Junxiao Shi about 10 years ago

  • Subject changed from nfd-status -h" to "nfd-status -h" doesn't terminate after printing usage
Actions #3

Updated by Alex Afanasyev about 10 years ago

  • Status changed from New to In Progress
  • Assignee set to Alex Afanasyev
Actions #4

Updated by Alex Afanasyev about 10 years ago

  • Status changed from In Progress to Code review
Actions #5

Updated by Alex Afanasyev about 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF