mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +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;
|
||||
*displaytime = -1;
|
||||
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){
|
||||
case 'h':
|
||||
usage(std::cout, argv[0], EXIT_SUCCESS);
|
||||
break;
|
||||
case 'V':
|
||||
printf("notcurses-view version %s\n", notcurses_version());
|
||||
exit(EXIT_SUCCESS);
|
||||
case 'q':
|
||||
*quiet = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user