From: <rob...@us...> - 2010-07-08 02:17:56
|
Revision: 68 http://netcdftools.svn.sourceforge.net/netcdftools/?rev=68&view=rev Author: robertbridle Date: 2010-07-08 02:17:50 +0000 (Thu, 08 Jul 2010) Log Message: ----------- ANDSWRON-703 - Fix usage text. Modified Paths: -------------- trunk/src/main/java/au/csiro/netcdf/wron/MdbsyNetCDF2CSVConverter.java Modified: trunk/src/main/java/au/csiro/netcdf/wron/MdbsyNetCDF2CSVConverter.java =================================================================== --- trunk/src/main/java/au/csiro/netcdf/wron/MdbsyNetCDF2CSVConverter.java 2010-07-08 02:05:42 UTC (rev 67) +++ trunk/src/main/java/au/csiro/netcdf/wron/MdbsyNetCDF2CSVConverter.java 2010-07-08 02:17:50 UTC (rev 68) @@ -129,7 +129,7 @@ .withArgName("dir") .hasArg() .withDescription( - "1. the directory path containing the netCDF files to be converted.") + "1. the directory path containing the netCDF files (split by latitude) to be converted into csv.") .isRequired(true).withLongOpt(INPUT_DIR).create("i"); Option outputDirectoryName = OptionBuilder @@ -139,20 +139,8 @@ "2: the directory path to place the new csv files.") .isRequired(true).withLongOpt(OUTPUT_DIR).create("o"); - Option pattern = OptionBuilder - .withArgName("filename pattern") - .hasArg() - .withDescription( - "3: OPTIONAL, a pattern to match multiple existing files, where multiple files should be " - + "processed. If this option is present the outputFilename is expected to be a directory " - + "containing the files to be processed. The wildcard characters * and ? are supported but " - + "may need to be escaped by a \\ to avoid processing by the shell. e.g. \\*.nc ") - .isRequired(false).withLongOpt(FILENAME_PATTERN) - .create("p"); - options.addOption(inputDirectoryName); options.addOption(outputDirectoryName); - options.addOption(pattern); // parse the command line arguments CommandLine parsedCommandLine = new GnuParser() @@ -174,8 +162,8 @@ // generate the help/usage statement String header = "Recreate "; - String footer = "\nExample: netcdf2csv -inputDirPath \"C:\\input\" -outputDirPath \"C:\\output\" \n" - + "Will convert the netCDF files in the input directory to csv file in the output directory."; + String footer = "\nExample: --inputDir \"C:\\input\" --outputDir \"C:\\output\" \n" + + "Will convert the netCDF files (which are split by latitude) in the input directory to csv files in the output directory."; StringWriter sw = new StringWriter(); HelpFormatter formatter = new HelpFormatter(); formatter.setOptionComparator(new CommandLineOptionsComparator()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |