diff --git a/cplusplus/examples/resize.cpp b/cplusplus/examples/resize.cpp index fb2a47ac..6403f86f 100644 --- a/cplusplus/examples/resize.cpp +++ b/cplusplus/examples/resize.cpp @@ -13,6 +13,9 @@ main( int argc, char **argv ) if( VIPS_INIT( argv[0] ) ) vips_error_exit( NULL ); + if( argc != 3 ) + vips_error_exit( "usage: %s infile outfile", argv[0] ); + VImage in = VImage::new_from_file( argv[1], VImage::option() ->set( "access", "sequential" ) );