Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f6747028
...
f674702867f09a3e2b8ebe3281a29cd9f660f29a
authored
2016-11-10 07:45:08 +0200
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix program name duplicate in the output of "mailutils help COMMAND"
1 parent
f93a4f1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
mu/help.c
mu/help.c
View file @
f674702
...
...
@@ -35,15 +35,17 @@ mutool_help (int argc, char **argv)
if
(
argc
==
1
)
{
char
*
hargv
[
3
];
mutool_action_t
action
=
dispatch_find_action
(
argv
[
0
]);
if
(
!
action
)
{
mu_error
(
_
(
"don't know what %s is"
),
argv
[
0
]);
exit
(
1
);
}
mu_asprintf
(
&
argv
[
0
],
"%s %s"
,
mu_program_name
,
argv
[
0
]);
argv
[
1
]
=
"--help"
;
return
action
(
2
,
argv
);
hargv
[
0
]
=
argv
[
0
];
hargv
[
1
]
=
"--help"
;
hargv
[
2
]
=
NULL
;
return
action
(
3
,
hargv
);
}
else
if
(
argc
>
1
)
{
...
...
Please
register
or
sign in
to post a comment