poke: rename -f/--force option to -u/--unsolicited
The old name will still be accepted for some time,
but will print a deprecation warning if used.
This commit also improves --help output.
Change-Id: I2ebac82423a5276109f4b40b382312bd852419de
diff --git a/tools/peek/ndnpoke/ndnpoke.hpp b/tools/peek/ndnpoke/ndnpoke.hpp
index adab5eb..5ffd8cf 100644
--- a/tools/peek/ndnpoke/ndnpoke.hpp
+++ b/tools/peek/ndnpoke/ndnpoke.hpp
@@ -23,6 +23,7 @@
* ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
*
* @author Jerald Paul Abraham <jeraldabraham@email.arizona.edu>
+ * @author Davide Pesavento <davidepesa@gmail.com>
*/
#ifndef NDN_TOOLS_NDNPOKE_NDNPOKE_HPP
@@ -42,13 +43,13 @@
{
// Data construction options
Name name;
- optional<time::milliseconds> freshnessPeriod;
+ time::milliseconds freshnessPeriod = DEFAULT_FRESHNESS_PERIOD;
bool wantFinalBlockId = false;
security::SigningInfo signingInfo;
// program behavior options
bool isVerbose = false;
- bool wantForceData = false;
+ bool wantUnsolicited = false;
optional<time::milliseconds> timeout;
};