From d022fa0abe54df0d9c603b8729aa4d3a2dc4556d Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Tue, 8 Feb 2011 10:01:36 +0000 Subject: [PATCH] usage --- NBToolkit/main.c | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/NBToolkit/main.c b/NBToolkit/main.c index 32420d5..55b4cf3 100644 --- a/NBToolkit/main.c +++ b/NBToolkit/main.c @@ -25,25 +25,40 @@ THE SOFTWARE. #include "chunk.h" void print_usage (const char *name) { - fprintf(stderr, "Usage: %s [options]\n", name); - fprintf(stderr, "Ore IDs:\n"); - fprintf(stderr, " 16 = Coal, 15 = Iron, 14 = Gold, 73 = Redstone, 56 = Diamond, 21 = Lapis\n"); - fprintf(stderr, "Options:\n"); - fprintf(stderr, " -r : Number of rounds ore is generated per chunk\n"); - fprintf(stderr, " -mn : Minimum depth ore is generated (0-127)\n"); - fprintf(stderr, " -mx : Maximum depth ore is generated (0-127)\n"); - fprintf(stderr, " -s : Size of ore deposit (0-63) -- Defaults:\n"); - fprintf(stderr, " Coal = 16, Iron/Gold = 8, Redstone/Diamond/Lapis = 7\n"); + fprintf(stderr, "Usage: %s [options]\n", name); + fprintf(stderr, "Available tools:\n"); + fprintf(stderr, " oregen : Generate new ore deposits\n"); + fprintf(stderr, " replace : Replace one block type with another\n\n"); + fprintf(stderr, "Usage and options for 'oregen':\n"); + fprintf(stderr, " %s oregen [options]\n", name); + fprintf(stderr, " Ore IDs:\n"); + fprintf(stderr, " 16 = Coal, 15 = Iron, 14 = Gold, 73 = Redstone, 56 = Diamond, 21 = Lapis\n"); + fprintf(stderr, " Options:\n"); + fprintf(stderr, " -r : Number of rounds ore is generated per chunk\n"); + fprintf(stderr, " -mn : Minimum depth ore is generated (0-127)\n"); + fprintf(stderr, " -mx : Maximum depth ore is generated (0-127)\n"); + fprintf(stderr, " -s : Size of ore deposit (0-63) -- Defaults:\n"); + fprintf(stderr, " Coal = 16, Iron/Gold = 8, Redstone/Diamond/Lapis = 7\n"); + fprintf(stderr, " -oo : Take precedence over all existing ores\n"); + fprintf(stderr, " -ob : Take precedence over all existing blocks (excluding air)\n"); + fprintf(stderr, " -oa : Take precedence over all existing blocks (including air)\n"); + fprintf(stderr, " -oi : Take precedence over a specific block type\n\n"); + fprintf(stderr, "Usage and options for 'replace':\n"); + fprintf(stderr, " %s replace [options]\n", name); + fprintf(stderr, " Options:\n"); + fprintf(stderr, " -mn : Minimum depth ore is generated (0-127)\n"); + fprintf(stderr, " -mx : Maximum depth ore is generated (0-127)\n"); + fprintf(stderr, " -p : Probability that an individual block is replaced (0.0 - 1.0)\n\n"); + fprintf(stderr, "Common Options:\n"); /*fprintf(stderr, " -cb