Skip to content

Commit

Permalink
CLI: Fix -w switch
Browse files Browse the repository at this point in the history
Adapt manual page
  • Loading branch information
carstene1ns committed Oct 25, 2023
1 parent 8bcd826 commit 71a931b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions res/unix/OpenJazz.6.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ To play, you will need original data files.
*-f*, *--fullscreen*::
Start in fullscreen mode.

*-w*, *--window*::
*--window*::
Start in window mode.

*-m*::
Start with muted audio.

*-s*, *--scale[=]* <__Factor__>::
Scale window by factor.
Scale window by factor. Can be between _1_ and _4_.

*-w*, *--world[=]* <__World__> *-l*, *--level[=]* <__Level__>::
Directly load specific world/level.
Expand Down
5 changes: 2 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ int display_mode_cb(struct argparse *, const struct argparse_option *option) {
}
#endif

int version_cb(struct argparse *, const struct argparse_option *option) {
(void)option;
int version_cb(struct argparse *, const struct argparse_option */*option*/) {
printf("OpenJazz %s, built on %s.\n", OJ_VERSION, OJ_DATE);
exit(EXIT_SUCCESS);
}
Expand All @@ -97,7 +96,7 @@ int checkOptions (int argc, char *argv[]) {
#ifndef FULLSCREEN_ONLY
OPT_BOOLEAN('f', "fullscreen", NULL, "Display in Fullscreen mode",
display_mode_cb, 0, OPT_NONEG),
OPT_BOOLEAN('w', "window", NULL, "Display in Window mode",
OPT_BOOLEAN('\0', "window", NULL, "Display in Window mode",
display_mode_cb, 0, OPT_NONEG),
#endif
OPT_INTEGER('s', "scale", &cli.scaleFactor, "Scale graphics <int> times", NULL, 0, 0),
Expand Down

0 comments on commit 71a931b

Please sign in to comment.