Commit f2f05fb4 authored by Julien Malik's avatar Julien Malik

ENH: handle wrong number of arguments in Tutorials

parent dc803800
......@@ -41,6 +41,13 @@
int main(int argc, char * argv[])
{
if (argc != 3)
{
std::cerr << "Usage: "
<< argv[0]
<< " <input_filename> <output_filename>"
<< std::endl;
}
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
......@@ -50,6 +50,14 @@
int main(int argc, char * argv[])
{
if (argc != 4)
{
std::cerr << "Usage: "
<< argv[0]
<< " <input_filename> <output_extract> <output_shifted_scaled>"
<< std::endl;
}
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
......@@ -35,6 +35,13 @@
int main(int argc, char * argv[])
{
if (argc != 3)
{
std::cerr << "Usage: "
<< argv[0]
<< " <input_filename> <output_filename>"
<< std::endl;
}
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
......@@ -42,6 +42,13 @@
int main(int argc, char * argv[])
{
if (argc != 3)
{
std::cerr << "Usage: "
<< argv[0]
<< " <input_filename> <output_filename>"
<< std::endl;
}
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
......@@ -39,7 +39,7 @@ int main(int argc, char * argv[])
if (argc != 2)
{
std::cerr << "Usage: " << argv[0] << " inputImageFile " << std::endl;
std::cerr << "Usage: " << argv[0] << " <inputImageFile>" << std::endl;
return EXIT_FAILURE;
}
......
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