TsvSplitOptions

Container for command line options and derived data.

TsvSplitOptions handles several aspects of command line options. On the input side, it defines the command line options available, performs validation, and sets up any derived state based on the options provided. These activities are handled by the processArgs() member.

Once argument processing is complete, TsvSplitOptions is used as a container holding the specific processing options used by the splitting algorithms.

Members

Functions

processArgs
auto processArgs(string[] cmdArgs)

Process tsv-split command line arguments.

Manifest constants

invalidFileSuffix
enum invalidFileSuffix;
Undocumented in source.

Variables

appendToExistingFiles
bool appendToExistingFiles;

--a|append

delim
char delim;

--d|delimiter

digitWidth
uint digitWidth;

--w|digit-width

dir
string dir;

--dir

files
string[] files;

Input files

hasHeader
bool hasHeader;

Derived. True if either '--H|header' or '--I|header-in-only' is set.

headerIn
bool headerIn;

--I|header-in-only

headerInOut
bool headerInOut;

--H|header

helpVerbose
bool helpVerbose;

--help-verbose

keyFields
size_t[] keyFields;

--k|key-fields

keyIsFullLine
bool keyIsFullLine;

Derived. True if '--f|fields 0' is specfied.

linesPerFile
size_t linesPerFile;

--l|lines-per-file

maxOpenFilesArg
uint maxOpenFilesArg;

--max-open-files

maxOpenOutputFiles
uint maxOpenOutputFiles;

Derived.

numFiles
uint numFiles;

--n|num-files

prefix
string prefix;

--prefix

programName
string programName;

Program name

seed
uint seed;

Derived from --static-seed, --seed-value

seedValueOptionArg
uint seedValueOptionArg;

--v|seed-value

staticSeed
bool staticSeed;

--s|static-seed

suffix
string suffix;

--suffix

usingUnpredictableSeed
bool usingUnpredictableSeed;

Derived from --static-seed, --seed-value

versionWanted
bool versionWanted;

--V|version

Meta