com.cleancode.getopt
Class ArgvFile

java.lang.Object
  extended by com.cleancode.getopt.ArgvFile

public final class ArgvFile
extends Object

Provides capability to mix command-line arguments with files of command-line arguments, all specified on the command-line. Any argument beginning with a FILE_INTERP_CHAR literal ("@") will be treated as a file, which should contain well-formed command-line arguments. The file will be expanded in place to provide a revised command-line containing regular command-line arguments.

Since:
CleanCode 0.9
Version:
$Revision: 9 $
Author:
Michael Sorens

Field Summary
static char FILE_INTERP_CHAR
          Signifies interpolated command-line arguments from a file on the command line.
static String VERSION
          Current version of this class.
 
Method Summary
static String[] interpolateArgs(String[] args)
          Expands any command-line files in place within a list of command-line arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final String VERSION
Current version of this class.


FILE_INTERP_CHAR

public static final char FILE_INTERP_CHAR
Signifies interpolated command-line arguments from a file on the command line.

See Also:
Constant Field Values
Method Detail

interpolateArgs

public static String[] interpolateArgs(String[] args)
Expands any command-line files in place within a list of command-line arguments.

Parameters:
args - argument list to interpolate
Returns:
revised argument list with interpolations in place (or original list) if there were no interpolations


CleanCode Java Libraries Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads