From 43d56de2f61137b6dcec94063326b58d67822828 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Thu, 7 Jan 2016 01:55:20 +0100 Subject: [PATCH] fix cli options doc proxy example, fix #313 --- examples/proxy/proxy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/proxy/proxy.js b/examples/proxy/proxy.js index a725432..f6091ec 100644 --- a/examples/proxy/proxy.js +++ b/examples/proxy/proxy.js @@ -2,7 +2,7 @@ var mc = require('minecraft-protocol'); var states = mc.states; function printHelpAndExit(exitCode) { - console.log("usage: node proxy.js [...] []"); + console.log("usage: node proxy.js [...] "); console.log("options:"); console.log(" --dump name"); console.log(" print to stdout messages with the specified name."); @@ -13,9 +13,9 @@ function printHelpAndExit(exitCode) { console.log(" name"); console.log(" a packet name as defined in protocol.json"); console.log("examples:"); - console.log(" node proxy.js --dump-all -x keep_alive -x update_time -x entity_velocity -x rel_entity_move -x entity_look -x entity_move_look -x entity_teleport -x entity_head_rotation -x position -x localhost Player"); + console.log(" node proxy.js --dump-all -x keep_alive -x update_time -x entity_velocity -x rel_entity_move -x entity_look -x entity_move_look -x entity_teleport -x entity_head_rotation -x position -x localhost 1.8"); console.log(" print all messages except for some of the most prolific."); - console.log(" node examples/proxy.js --dump open_window --dump close_window --dump set_slot --dump window_items --dump craft_progress_bar --dump transaction --dump close_window --dump window_click --dump set_creative_slot --dump enchant_item localhost Player"); + console.log(" node examples/proxy.js --dump open_window --dump close_window --dump set_slot --dump window_items --dump craft_progress_bar --dump transaction --dump close_window --dump window_click --dump set_creative_slot --dump enchant_item localhost 1.8"); console.log(" print messages relating to inventory management."); process.exit(exitCode);