aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-17 06:38:18 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-17 06:38:18 +0200
commit061c0f76fb204428d335baae163c94eab397ce5c (patch)
tree69615c09ba59a6da40960b4e0b2ff6ed0d751af7
parentfc31682ee29e700f25e746fea9fb9978f3d3d5d2 (diff)
Add examples to usage output
-rw-r--r--src/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9dbe5f2..f3fdb77 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -390,6 +390,7 @@ void dprintf( const char *fmt, ... )
static void usage() {
fprintf(stderr, "usage: vr-video-player [--sphere] [--flat] [--left-right|--right-left|--plane] [--stretch|--no-stretch] [--zoom zoom-level] [--cursor-scale scale] [--cursor-wrap|--no-cursor-wrap] <window_id>\n");
+ fprintf(stderr, "\n");
fprintf(stderr, "OPTIONS\n");
fprintf(stderr, " --sphere View the window as a stereoscopic 180 degrees screen (half sphere). The view will be attached to your head in vr. This is recommended for 180 degrees videos. This option conflicts with the --flat and --plane options. This is the default value\n");
fprintf(stderr, " --flat View the window as a stereoscopic flat screen. This is recommended for stereoscopic videos and games. This option conflicts with the --sphere and --plane options\n");
@@ -403,6 +404,15 @@ static void usage() {
fprintf(stderr, " --cursor-wrap If this option is set, then the cursor position in the vr view will wrap around when it reached the center of the window (i.e when it reaches the edge of one side of the stereoscopic view). This option is only valid for stereoscopic view (flat and sphere modes)\n");
fprintf(stderr, " --no-cursor-wrap If this option is set, then the cursor position in the vr view will match the the real cursor position inside the window\n");
fprintf(stderr, " window_id The X11 window id of the window to view in vr. This option is required\n");
+ fprintf(stderr, "\n");
+ fprintf(stderr, "EXAMPLES\n");
+ fprintf(stderr, " vr-video-player 1830423\n");
+ fprintf(stderr, " vr-video-player --flat 1830423\n");
+ fprintf(stderr, " vr-video-player --flat --right-left 1830423\n");
+ fprintf(stderr, " vr-video-player --plane --zoom 2.0 1830423\n");
+ fprintf(stderr, " vr-video-player --flat $(xdotool selectwindow)\n");
+ fprintf(stderr, "\n");
+ fprintf(stderr, "Note: All options except window_id are optional\n");
exit(1);
}