poke: change the short form of --freshness to -f
For consistency with ndnpingserver and ndnputchunks Change-Id: I82afc6de29e207d65bf885b0acbabfc9da05a5a7
This commit is contained in:
1 parent
814ad34909
commit
6929b4344a
2 files changed
+7
-7
No files matched your search
@@ -4,7 +4,7 @@ ndnpoke
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
**ndnpoke** [-h] [-x *freshness*] [-F] [-S *info*] [-u\|\ -w *timeout*] [-v] [-V] *name*
|
||||
**ndnpoke** [-h] [-f *freshness*] [-F] [-S *info*] [-u\|\ -w *timeout*] [-v] [-V] *name*
|
||||
|
||||
Description
|
||||
-----------
|
||||
@@ -20,7 +20,7 @@ Options
|
||||
``-h, --help``
|
||||
Print help and exit.
|
||||
|
||||
``-x, --freshness <freshness>``
|
||||
``-f, --freshness <freshness>``
|
||||
Set ``freshness`` (in milliseconds) as the ``FreshnessPeriod``.
|
||||
|
||||
``-F, --final``
|
||||
|
||||
@@ -66,11 +66,11 @@ main(int argc, char* argv[])
|
||||
|
||||
po::options_description dataOptDesc("Data construction");
|
||||
dataOptDesc.add_options()
|
||||
("final,F", po::bool_switch(&options.wantFinalBlockId),
|
||||
"set FinalBlockId to the last component of the Data name")
|
||||
("freshness,x", po::value<time::milliseconds::rep>()->default_value(options.freshnessPeriod.count()),
|
||||
"set FreshnessPeriod, in milliseconds")
|
||||
("signing-info,S", po::value<std::string>(&signingStr), "see 'man ndnpoke' for usage")
|
||||
("freshness,f", po::value<time::milliseconds::rep>()->default_value(options.freshnessPeriod.count()),
|
||||
"set FreshnessPeriod, in milliseconds")
|
||||
("final,F", po::bool_switch(&options.wantFinalBlockId),
|
||||
"set FinalBlockId to the last component of the Data name")
|
||||
("signing-info,S", po::value<std::string>(&signingStr), "see 'man ndnpoke' for usage")
|
||||
;
|
||||
|
||||
po::options_description visibleOptDesc;
|
||||
|
||||
Reference in new issue
Block a user