Skip to content

Commit

Permalink
vglrun: Add --version switch
Browse files Browse the repository at this point in the history
Closes #257
  • Loading branch information
dcommander committed Jul 11, 2024
1 parent 80e62ed commit 50b07e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/vglrun.in
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ usage()
echo
echo "+/-v : Enable/disable verbose VirtualGL messages [default = disabled]"
echo
echo "--version : Display version information"
echo
echo "+xcb/-xcb : Enable/disable XCB interposer [default = enabled]"
echo
echo "+wm/-wm : Enable/disable window manager mode (for running Compiz, etc.)"
Expand Down Expand Up @@ -158,6 +160,10 @@ do
-ldp) VGL_PRELOAD=$2 ; shift ;;
-h) usage 0 ;;
--help) usage 0 ;;
--version)
echo "@CMAKE_PROJECT_NAME@ v@VERSION@ (Build @BUILD@)"
exit 0
;;
--) shift ; break ;;
-*) usage 1 ;;
*) break ;;
Expand Down

0 comments on commit 50b07e0

Please sign in to comment.