summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/main.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:35:03 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:35:03 +0100
commite99ae17a80c64f5f0b758b6aab999fd7cb406dd3 (patch)
treea0606b966eea25503b4bb7db0a4ee96c2418e364 /mpvcore/player/main.c
parentb5ed6148394062fbc8ac101bd1efe918470ac585 (diff)
downloadmpv-e99ae17a80c64f5f0b758b6aab999fd7cb406dd3.tar.bz2
mpv-e99ae17a80c64f5f0b758b6aab999fd7cb406dd3.tar.xz
options: don't prefix sub-options with "--" in help output
Commit 0cb9227a added this to the option list help output, but it looks strange with sub-options.
Diffstat (limited to 'mpvcore/player/main.c')
-rw-r--r--mpvcore/player/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpvcore/player/main.c b/mpvcore/player/main.c
index 81e724252d..528076bc57 100644
--- a/mpvcore/player/main.c
+++ b/mpvcore/player/main.c
@@ -316,6 +316,7 @@ static int mpv_main(int argc, char *argv[])
mpctx->opts = mpctx->mconfig->optstruct;
mpctx->mconfig->includefunc = cfg_include;
mpctx->mconfig->use_profiles = true;
+ mpctx->mconfig->is_toplevel = true;
struct MPOpts *opts = mpctx->opts;