diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index f09f0a5a653..75110e8173c 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -123,7 +123,7 @@ jobs: if: success() || steps.build.outcome == 'success' run: | ./wesnoth --version - for opt in data userdata + for opt in data userdata usercache do output=$(./wesnoth --nobanner --"$opt"-path) if [ "$output" = "" ]; then printf 'option --%s-path prints nothing to stdout!\n' "$opt" >&2; exit 1; fi diff --git a/src/wesnoth.cpp b/src/wesnoth.cpp index 8fd9a0b5b19..05793cbb73f 100644 --- a/src/wesnoth.cpp +++ b/src/wesnoth.cpp @@ -299,6 +299,7 @@ static int process_command_args(commandline_options& cmdline_opts) // command line options that imply not redirecting output to a log file && !cmdline_opts.data_path && !cmdline_opts.userdata_path + && !cmdline_opts.usercache_path && !cmdline_opts.version && !cmdline_opts.simple_version && !cmdline_opts.logdomains