notcurses-view: accept only valid -s arguments #563

pull/587/head
nick black 4 years ago
parent e23d5baea4
commit 0b22b561d2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -117,6 +117,9 @@ int handle_opts(int argc, char** argv, notcurses_options& opts, float* timescale
*scalemode = NCScale::Scale;
}else if(strcmp(optarg, "none") == 0){
*scalemode = NCScale::None;
}else{
std::cerr << "Scaling type should be one of stretch, scale, none" << std::endl;
usage(std::cerr, argv[0], EXIT_FAILURE);
}
break;
case 'k':{

Loading…
Cancel
Save