diff options
author | Philip Sequeira <phsequei@gmail.com> | 2017-03-05 16:47:36 -0500 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-06 15:41:06 +0100 |
commit | a2a5fa454565e7e7ca11721ec9d1935a9fccf168 (patch) | |
tree | 34345f559f7ec858e2178893f5024e7bb87339a3 /options | |
parent | 1245ac1dc527e10c57b40f9c82c652a68904c86e (diff) | |
download | mpv-a2a5fa454565e7e7ca11721ec9d1935a9fccf168.tar.bz2 mpv-a2a5fa454565e7e7ca11721ec9d1935a9fccf168.tar.xz |
options: add M_OPT_FILE to some more file options
(Helps shell completion.)
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/options/options.c b/options/options.c index 012707cb2c..0cb653c4a9 100644 --- a/options/options.c +++ b/options/options.c @@ -305,7 +305,7 @@ const m_option_t mp_opts[] = { #endif OPT_FLAG("config", load_config, M_OPT_FIXED | CONF_PRE_PARSE), OPT_STRING("config-dir", force_configdir, - M_OPT_FIXED | CONF_NOCFG | CONF_PRE_PARSE), + M_OPT_FIXED | CONF_NOCFG | CONF_PRE_PARSE | M_OPT_FILE), OPT_STRINGLIST("reset-on-next-file", reset_options, 0), #if HAVE_LUA @@ -618,7 +618,7 @@ const m_option_t mp_opts[] = { OPT_FLAG("save-position-on-quit", position_save_on_quit, 0), OPT_FLAG("write-filename-in-watch-later-config", write_filename_in_watch_later_config, 0), OPT_FLAG("ignore-path-in-watch-later-config", ignore_path_in_watch_later_config, 0), - OPT_STRING("watch-later-directory", watch_later_directory, 0), + OPT_STRING("watch-later-directory", watch_later_directory, M_OPT_FILE), OPT_FLAG("ordered-chapters", ordered_chapters, 0), OPT_STRING("ordered-chapters-files", ordered_chapters_files, M_OPT_FILE), @@ -686,7 +686,7 @@ const m_option_t mp_opts[] = { OPT_SUBSTRUCT("screenshot", screenshot_image_opts, screenshot_conf, 0), OPT_STRING("screenshot-template", screenshot_template, 0), - OPT_STRING("screenshot-directory", screenshot_directory, 0), + OPT_STRING("screenshot-directory", screenshot_directory, M_OPT_FILE), OPT_STRING("record-file", record_file, M_OPT_FILE), |