mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
notcurses-view: support 'V' for version out #1266
This commit is contained in:
parent
0bcb107ae6
commit
4616d60ae9
@ -179,11 +179,14 @@ auto handle_opts(int argc, char** argv, notcurses_options& opts, bool* quiet,
|
|||||||
*scalemode = NCSCALE_STRETCH;
|
*scalemode = NCSCALE_STRETCH;
|
||||||
*displaytime = -1;
|
*displaytime = -1;
|
||||||
int c;
|
int c;
|
||||||
while((c = getopt(argc, argv, "hql:d:s:b:t:m:kL")) != -1){
|
while((c = getopt(argc, argv, "Vhql:d:s:b:t:m:kL")) != -1){
|
||||||
switch(c){
|
switch(c){
|
||||||
case 'h':
|
case 'h':
|
||||||
usage(std::cout, argv[0], EXIT_SUCCESS);
|
usage(std::cout, argv[0], EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
|
case 'V':
|
||||||
|
printf("notcurses-view version %s\n", notcurses_version());
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
case 'q':
|
case 'q':
|
||||||
*quiet = true;
|
*quiet = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user