Commit 534793f1 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Adding help outputs to 2 softs

parent 52ad5d49
......@@ -24,6 +24,21 @@ int main(int argc, char** argv)
{
arguments args(argc, argv) ;
if(args.is_defined("help")) {
std::cout << "Usage: brdf2brdf [options] --input data.file --output data.file" << std::endl ;
std::cout << "Re-export a function object to another output format."<< std::endl ;
std::cout << std::endl;
std::cout << "Mandatory arguments:" << std::endl;
std::cout << " --input [filename]" << std::endl;
std::cout << " --output [filename]" << std::endl;
std::cout << std::endl;
std::cout << "Optional arguments:" << std::endl;
std::cout << " --export [type] Name of the export format used to save the outputed" << std::endl ;
std::cout << " function file. Available types are: alta, matlab," << std::endl ;
std::cout << " explorer or shader." << std::endl ;
return 0 ;
}
if(! args.is_defined("input")) {
std::cerr << "<<ERROR>> the input filename is not defined" << std::endl ;
return 1 ;
......
......@@ -36,6 +36,24 @@ int main(int argc, char** argv)
//feenableexcept(FE_DIVBYZERO | FE_OVERFLOW | FE_INVALID);
#endif
if(args.is_defined("help")) {
std::cout << "Usage: data2brdf [options] --input data.file --output data.file" << std::endl ;
std::cout << "Convert a data object to a function object using a fitting procedure."<< std::endl ;
std::cout << std::endl;
std::cout << "Mandatory arguments:" << std::endl;
std::cout << " --input [filename]" << std::endl;
std::cout << " --output [filename]" << std::endl;
std::cout << " --fitter [filename]" << std::endl;
std::cout << std::endl;
std::cout << "Optional arguments:" << std::endl;
std::cout << " --func [filename] Name of the function plugin. If not defined, a" << std::endl ;
std::cout << " monomial rational function will be used." << std::endl ;
std::cout << " --data [filename] Name of the data plugin used to load the input" << std::endl ;
std::cout << " data file. If no plugin is defined, the data file" << std::endl ;
std::cout << " will be load using ALTA format." << std::endl ;
return 0 ;
}
fitter* fit = plugins_manager::get_fitter(args["fitter"]) ;
if(fit == NULL)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment