Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b0799cea
Commit
b0799cea
authored
Nov 12, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display --option=<value type> instead of --option <value type> on windows in usage help.
parent
43e8fc6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
src/libvlc-common.c
src/libvlc-common.c
+16
-5
No files found.
src/libvlc-common.c
View file @
b0799cea
...
@@ -1147,6 +1147,11 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
...
@@ -1147,6 +1147,11 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
*/
*/
#define LINE_START 8
#define LINE_START 8
#define PADDING_SPACES 25
#define PADDING_SPACES 25
#ifdef WIN32
# define OPTION_VALUE_SEP "="
#else
# define OPTION_VALUE_SEP " "
#endif
vlc_list_t
*
p_list
;
vlc_list_t
*
p_list
;
module_t
*
p_parser
;
module_t
*
p_parser
;
module_config_t
*
p_item
;
module_config_t
*
p_item
;
...
@@ -1244,11 +1249,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
...
@@ -1244,11 +1249,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
case
CONFIG_ITEM_MODULE_CAT
:
case
CONFIG_ITEM_MODULE_CAT
:
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST_CAT
:
case
CONFIG_ITEM_MODULE_LIST_CAT
:
psz_bra
=
" <"
;
psz_type
=
_
(
"string"
);
psz_ket
=
">"
;
psz_bra
=
OPTION_VALUE_SEP
"<"
;
psz_type
=
_
(
"string"
);
psz_ket
=
">"
;
if
(
p_item
->
ppsz_list
)
if
(
p_item
->
ppsz_list
)
{
{
psz_bra
=
"
{"
;
psz_bra
=
OPTION_VALUE_SEP
"
{"
;
psz_type
=
psz_buffer
;
psz_type
=
psz_buffer
;
psz_type
[
0
]
=
'\0'
;
psz_type
[
0
]
=
'\0'
;
for
(
i
=
0
;
p_item
->
ppsz_list
[
i
];
i
++
)
for
(
i
=
0
;
p_item
->
ppsz_list
[
i
];
i
++
)
...
@@ -1261,11 +1268,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
...
@@ -1261,11 +1268,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
break
;
break
;
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_KEY
:
/* FIXME: do something a bit more clever */
case
CONFIG_ITEM_KEY
:
/* FIXME: do something a bit more clever */
psz_bra
=
" <"
;
psz_type
=
_
(
"integer"
);
psz_ket
=
">"
;
psz_bra
=
OPTION_VALUE_SEP
"<"
;
psz_type
=
_
(
"integer"
);
psz_ket
=
">"
;
if
(
p_item
->
i_list
)
if
(
p_item
->
i_list
)
{
{
psz_bra
=
"
{"
;
psz_bra
=
OPTION_VALUE_SEP
"
{"
;
psz_type
=
psz_buffer
;
psz_type
=
psz_buffer
;
psz_type
[
0
]
=
'\0'
;
psz_type
[
0
]
=
'\0'
;
for
(
i
=
0
;
p_item
->
ppsz_list_text
[
i
];
i
++
)
for
(
i
=
0
;
p_item
->
ppsz_list_text
[
i
];
i
++
)
...
@@ -1279,7 +1288,9 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
...
@@ -1279,7 +1288,9 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
}
}
break
;
break
;
case
CONFIG_ITEM_FLOAT
:
case
CONFIG_ITEM_FLOAT
:
psz_bra
=
" <"
;
psz_type
=
_
(
"float"
);
psz_ket
=
">"
;
psz_bra
=
OPTION_VALUE_SEP
"<"
;
psz_type
=
_
(
"float"
);
psz_ket
=
">"
;
break
;
break
;
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
psz_bra
=
""
;
psz_type
=
""
;
psz_ket
=
""
;
psz_bra
=
""
;
psz_type
=
""
;
psz_ket
=
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment