void logstalgia_help() { #ifdef _WIN32 SDLAppCreateWindowsConsole(); //resize window to fit help message SDLAppResizeWindowsConsole(700); #endif printf("Logstalgia v%s\n", LOGSTALGIA_VERSION); printf("Usage: logstalgia [OPTIONS] FILE\n\n"); printf("Options:\n"); printf(" -WIDTHxHEIGHT Set window size\n"); printf(" -f Fullscreen\n\n"); printf(" -b --background FFFFFF Background colour in hex\n\n"); printf(" -x --full-hostnames Show full request ip/hostname\n"); printf(" -s --speed Simulation speed (default: 1)\n"); printf(" -t --time-scale Time scale (default: 1)\n\n"); printf(" -u --update-rate Page summary update rate (default: 2)\n\n"); printf(" -g name,regex,percent[,colour] Group urls that match a regular expression\n\n"); printf(" --paddle-mode MODE Paddle mode (single, pid, vhost)\n"); printf(" --paddle-position POSITION Paddle position as a fraction of the view width (default: 0.67)\n\n"); printf(" --sync Read from STDIN, ignoring entries before now\n"); printf(" --start-position POSITION Begin at some position in the log (0.0 - 1.0)\n"); printf(" --stop-position POSITION Stop at some position\n\n"); printf(" --no-bounce No bouncing\n\n"); printf(" --hide-response-code Hide response code\n"); printf(" --hide-paddle Hide paddle\n"); printf(" --hide-paddle-tokens Hide paddle tokens in pid and vhost paddle modes\n"); printf(" --hide-url-prefix Hide URL protocol and hostname prefix\n\n"); printf(" --disable-auto-skip Disable skipping of empty time periods\n"); printf(" --disable-progress Disable the progress bar\n"); printf(" --disable-glow Disable the glow effect\n\n"); printf(" --font-size SIZE Font size\n\n"); printf(" --glow-duration Duration of the glow (default: 0.15)\n"); printf(" --glow-multiplier Adjust the amount of glow (default: 1.25)\n"); printf(" --glow-intensity Intensity of the glow (default: 0.5)\n\n"); printf(" --output-ppm-stream FILE Write frames as PPM to a file ('-' for STDOUT)\n"); printf(" --output-framerate FPS Framerate of output (25,30,60)\n\n"); printf("FILE should be a log file or '-' to read STDIN.\n\n"); #ifdef _WIN32 printf("Press Enter\n"); getchar(); #endif exit(0); }
//display help message void GourceSettings::help(bool extended_help) { #ifdef _WIN32 SDLAppCreateWindowsConsole(); //resize window to fit help message SDLAppResizeWindowsConsole(820); #endif printf("Gource v%s\n", GOURCE_VERSION); printf("Usage: gource [OPTIONS] [PATH]\n"); printf("\nOptions:\n"); printf(" -h, --help Help\n\n"); printf(" -WIDTHxHEIGHT, --viewport Set viewport size\n"); printf(" -f, --fullscreen Fullscreen\n"); printf(" --multi-sampling Enable multi-sampling\n"); printf(" --no-vsync Disable vsync\n\n"); printf(" -p, --start-position POSITION Begin at some position (0.0-1.0 or 'random')\n"); printf(" --stop-position POSITION Stop at some position\n"); printf(" -t, --stop-at-time SECONDS Stop after a specified number of seconds\n"); printf(" --stop-at-end Stop at end of the log\n"); printf(" --dont-stop Keep running after the end of the log\n"); printf(" --loop Loop at the end of the log\n\n"); printf(" -a, --auto-skip-seconds SECONDS Auto skip to next entry if nothing happens\n"); printf(" for a number of seconds (default: 3)\n"); printf(" --disable-auto-skip Disable auto skip\n"); printf(" -s, --seconds-per-day SECONDS Speed in seconds per day (default: 10)\n"); printf(" --realtime Realtime playback speed\n"); printf(" -c, --time-scale SCALE Change simulation time scale (default: 1.0)\n"); printf(" -e, --elasticity FLOAT Elasticity of nodes\n\n"); printf(" --key Show file extension key\n\n"); printf(" --user-image-dir DIRECTORY Dir containing images to use as avatars\n"); printf(" --default-user-image IMAGE Default user image file\n"); printf(" --colour-images Colourize user images\n\n"); printf(" -i, --file-idle-time SECONDS Time files remain idle (default: 60)\n\n"); printf(" --max-files NUMBER Max number of files or 0 for no limit\n"); printf(" --max-file-lag SECONDS Max time files of a commit can take to appear\n\n"); printf(" --log-command VCS Show the VCS log command (git,svn,hg,bzr,cvs2cl)\n"); printf(" --log-format VCS Specify the log format (git,svn,hg,bzr,cvs2cl,custom)\n\n"); printf(" --load-config CONF_FILE Load a config file\n"); printf(" --save-config CONF_FILE Save a config file with the current options\n\n"); printf(" -o, --output-ppm-stream FILE Output PPM stream to a file ('-' for STDOUT)\n"); printf(" -r, --output-framerate FPS Framerate of output (25,30,60)\n\n"); if(extended_help) { printf("Extended Options:\n\n"); printf(" --output-custom-log FILE Output a custom format log file ('-' for STDOUT).\n\n"); printf(" -b, --background-colour FFFFFF Background colour in hex\n"); printf(" --background-image IMAGE Set a background image\n\n"); printf(" --bloom-multiplier Adjust the amount of bloom (default: 1.0)\n"); printf(" --bloom-intensity Adjust the intensity of the bloom (default: 0.75)\n\n"); printf(" --camera-mode MODE Camera mode (overview,track)\n"); printf(" --crop AXIS Crop view on an axis (vertical,horizontal)\n"); printf(" --padding FLOAT Camera view padding (default: 1.1)\n\n"); printf(" --disable-auto-rotate Disable automatic camera rotation\n\n"); printf(" --date-format FORMAT Specify display date string (strftime format)\n\n"); printf(" --font-size SIZE Font size used by date and title\n"); printf(" --font-colour FFFFFF Font colour used by date and title in hex\n\n"); printf(" --file-extensions Show filename extensions only\n\n"); printf(" --git-branch Get the git log of a particular branch\n\n"); printf(" --hide DISPLAY_ELEMENT bloom,date,dirnames,files,filenames,mouse,progress,\n"); printf(" root,tree,users,usernames\n\n"); printf(" --logo IMAGE Logo to display in the foreground\n"); printf(" --logo-offset XxY Offset position of the logo\n\n"); printf(" --title TITLE Set a title\n\n"); printf(" --transparent Make the background transparent\n\n"); printf(" --user-filter REGEX Ignore usernames matching this regex\n"); printf(" --file-filter REGEX Ignore files matching this regex\n\n"); printf(" --user-friction SECONDS Change the rate users slow down (default: 0.67)\n"); printf(" --user-scale SCALE Change scale of users (default: 1.0)\n"); printf(" --max-user-speed UNITS Speed users can travel per second (default: 500)\n\n"); printf(" --follow-user USER Camera will automatically follow this user\n"); printf(" --highlight-dirs Highlight the names of all directories\n"); printf(" --highlight-user USER Highlight the names of a particular user\n"); printf(" --highlight-users Highlight the names of all users\n\n"); printf(" --highlight-colour Font colour for highlighted users in hex.\n"); printf(" --selection-colour Font colour for selected users and files.\n"); printf(" --dir-colour Font colour for directories.\n\n"); printf(" --caption-file FILE Caption file\n"); printf(" --caption-size SIZE Caption font size\n"); printf(" --caption-colour FFFFFF Caption colour in hex\n"); printf(" --caption-duration SECONDS Caption duration (default: 10.0)\n"); printf(" --caption-offset X Caption horizontal offset\n\n"); printf(" --hash-seed SEED Change the seed of hash function.\n\n"); printf(" --path PATH\n\n"); } printf("PATH may be a supported version control directory, a log file, a gource config\n"); printf("file, or '-' to read STDIN. If omitted, gource will attempt to generate a log\n"); printf("from the current directory.\n\n"); if(!extended_help) { printf("To see the full command line options use '-H'\n\n"); } #ifdef _WIN32 if(gSDLAppConsoleWindow) { printf("Press Enter\n"); getchar(); } #endif exit(0); }