Commit Graph

4 Commits

Author SHA1 Message Date
Davide Pesavento 2a58815ee3 tools: extend nfdc help to cover more cases
Change-Id: I0cd182c8635b15c8ffb750c913e14fa99e595d45
Refs: #4503
2018-02-20 21:34:00 -05:00
Davide Pesavento e0bae0f64b tools: make nfdc smarter when the user asks for help
Now 'nfdc foo help', 'nfdc foo --help', and 'nfdc foo -h'
are all accepted as synonyms of 'nfdc help foo'.

Additionally, '--version' can be used in place of '-V'.

Change-Id: I070bb0ea9231a2642c40938377f1e9af2630b34e
Refs: #4503
2018-02-18 10:26:12 -05:00
Junxiao Shi 88a062de78 tools: add exit code and streams to nfdc::ExecuteContext
Moving exit code to the context allows error handling routines to
rely only on the context.

Moving stdout and stderr streams to the context allows mocking in
unit tests, and allows sending output to a buffer for pre-processing
when we implement interactive mode.

refs #3864

Change-Id: Ibf59c12405d0eaca0597835cb2e30125b7f70adb
2017-01-26 03:10:05 +00:00
Junxiao Shi 6c13562d23 tools: nfdc help command
refs #3780

Change-Id: Ibd0e37bad127a38e582864fadd81afadc74baf48
2016-11-21 14:30:33 +00:00