From 5d5ca22a6d9e87d3865ea2feb54218a6e0dfffea Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 29 Jul 2011 07:24:09 +0300 Subject: options: commandline: accept --foo=xyz style options Allow writing commandline options with two leading dashes. In this mode a parameter for the option, if any, follows after a '='; following separate commandline arguments are never consumed as a parameter to a previous double-dash option. Flag options may omit parameter and behave like old single-dash syntax. "--fs=yes", "--fs=no" and "--fs" are all valid; the first two behave like configuration file "fs=yes" and "fs=no", and last is the same as old "-fs" (same effect as "--fs=yes"). --- playtreeparser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'playtreeparser.h') diff --git a/playtreeparser.h b/playtreeparser.h index a3d729fdb3..a774bb9e4a 100644 --- a/playtreeparser.h +++ b/playtreeparser.h @@ -20,6 +20,7 @@ #define MPLAYER_PLAYTREEPARSER_H #include "playtree.h" +#include "bstr.h" /// \defgroup PlaytreeParser Playtree parser /// \ingroup Playtree @@ -65,7 +66,7 @@ play_tree_parser_get_play_tree(play_tree_parser_t* p, int forced); /// Wrapper for play_tree_add_basepath (add base path from file). void -play_tree_add_bpf(play_tree_t* pt, char* filename); +play_tree_add_bpf(play_tree_t* pt, struct bstr filename); ///@} -- cgit v1.2.3