in src/Core/Vipr/Bootstrapper.cs [51:77]
private void GetCommandLineConfiguration(string[] args)
{
var docopt = new Docopt();
IDictionary<string, ValueObject> res = docopt.Apply(Usage, args, help: true, exit: true);
_ocdmModelExportPath = res["--modelExport"] == null ? _ocdmModelExportPath : res["--modelExport"].ToString();
_readerName = res["--reader"] == null ? _readerName : res["--reader"].ToString();
_writerName = res["--writer"] == null ? _writerName : res["--writer"].ToString();
if (res["--outputPath"] == null)
{
// do nothing, rely on default
}
else if (res["--outputPath"].ToString() == String.Empty)
{
_outputPath = @".\"; // current working directory
}
else
{
_outputPath = res["--outputPath"].ToString();
}
_metadataPath = res["<inputFile>"] == null ? _metadataPath : res["<inputFile>"].ToString();
}