Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
8ddd03ea
Commit
8ddd03ea
authored
Dec 02, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: improve help message
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
c5c3a537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
mockturtle-list.c
tools/mockturtle-list.c
+9
-4
No files found.
tools/mockturtle-list.c
View file @
8ddd03ea
...
...
@@ -23,11 +23,16 @@
#include <errno.h>
#include <libmockturtle.h>
static
void
help
()
/**
* It prints the help message
* @param[in] name the program name
*/
static
void
help
(
char
*
name
)
{
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
lsmockturtle [options]
\n\n
"
);
fprintf
(
stderr
,
"It shows the
current Mock Turtle
available on the system.
\n\n
"
);
fprintf
(
stderr
,
"
%s [options]
\n\n
"
,
name
);
fprintf
(
stderr
,
"It shows the
Mock Turtle devices
available on the system.
\n\n
"
);
fprintf
(
stderr
,
"-v show more information
\n
"
);
fprintf
(
stderr
,
"-h show this help
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
...
...
@@ -47,7 +52,7 @@ int main(int argc, char *argv[])
while
((
c
=
getopt
(
argc
,
argv
,
"h:v"
))
!=
-
1
)
{
switch
(
c
)
{
default:
help
();
help
(
argv
[
0
]
);
break
;
case
'v'
:
verbose
++
;
...
...
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