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
9ff3595f
Commit
9ff3595f
authored
Jul 07, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: Advertise -p and --list in help.
parent
965c38a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
src/libvlc.c
src/libvlc.c
+17
-2
No files found.
src/libvlc.c
View file @
9ff3595f
...
...
@@ -1272,6 +1272,18 @@ static int GetFilenames( libvlc_int_t *p_vlc, int i_argc, const char *ppsz_argv[
*****************************************************************************
* Print a short inline help. Message interface is initialized at this stage.
*****************************************************************************/
static
inline
void
print_help_on_module_help
(
void
)
{
utf8_fprintf
(
stdout
,
"
\n
"
);
utf8_fprintf
(
stdout
,
"To get the VLC module list, use '--list'.
\n
"
);
utf8_fprintf
(
stdout
,
"To get help on a particular module, use '-p <module_name>'.
\n
"
);
}
static
inline
void
print_help_on_full_help
(
void
)
{
utf8_fprintf
(
stdout
,
"
\n
"
);
utf8_fprintf
(
stdout
,
"To get a exhaustive help, use '-H'.
\n
"
);
}
static
void
Help
(
libvlc_int_t
*
p_this
,
char
const
*
psz_help_name
)
{
#ifdef WIN32
...
...
@@ -1283,18 +1295,21 @@ static void Help( libvlc_int_t *p_this, char const *psz_help_name )
utf8_fprintf
(
stdout
,
vlc_usage
,
p_this
->
psz_object_name
);
Usage
(
p_this
,
"help"
);
Usage
(
p_this
,
"main"
);
utf8_fprintf
(
stdout
,
"To get a exhaustive help use -H
\n
"
);
print_help_on_module_help
();
print_help_on_full_help
();
}
else
if
(
psz_help_name
&&
!
strcmp
(
psz_help_name
,
"longhelp"
)
)
{
utf8_fprintf
(
stdout
,
vlc_usage
,
p_this
->
psz_object_name
);
Usage
(
p_this
,
NULL
);
utf8_fprintf
(
stdout
,
"To get an exhaustive help use -H
\n
"
);
print_help_on_module_help
();
print_help_on_full_help
();
}
else
if
(
psz_help_name
&&
!
strcmp
(
psz_help_name
,
"full-help"
)
)
{
utf8_fprintf
(
stdout
,
vlc_usage
,
p_this
->
psz_object_name
);
Usage
(
p_this
,
NULL
);
print_help_on_module_help
();
}
else
if
(
psz_help_name
)
{
...
...
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