Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
34b97c50
Commit
34b97c50
authored
Mar 08, 2019
by
Mathieu Giraud
Browse files
vidjil.cpp: show hint on some deprecated options
See
#3295
.
parent
da844b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/vidjil.cpp
View file @
34b97c50
...
...
@@ -581,6 +581,16 @@ int main (int argc, char **argv)
->
group
(
group
);
// Deprecated options
bool
deprecated
=
false
;
#define DEPRECATED(options, text) app.add_flag_function((options), [&](size_t n) { UNUSED(n); deprecated = true ; return app.exit(CLI::ConstructionError((text), 1));}) -> level(3);
DEPRECATED
(
"-t"
,
"'-t' is deprecated, please use '--trim'"
);
DEPRECATED
(
"-A"
,
"'-A' is deprecated, please use '--all'"
);
DEPRECATED
(
"-a"
,
"'-a' is deprecated, please use '--out-reads'"
);
DEPRECATED
(
"-l"
,
"'-l' is deprecated, please use '--label'"
);
// ----------------------------------------------------------------------------------------------------------------------
app
.
set_footer
(
usage_examples
(
argv
[
0
]));
...
...
@@ -603,6 +613,7 @@ int main (int argc, char **argv)
else
{
return
app
.
exit
(
CLI
::
ConstructionError
(
"Unknown command "
+
cmd
,
1
));
}
if
(
deprecated
)
return
1
;
list
<
string
>
f_reps_V
(
v_reps_V
.
begin
(),
v_reps_V
.
end
());
list
<
string
>
f_reps_D
(
v_reps_D
.
begin
(),
v_reps_D
.
end
());
...
...
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