Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
530ae0f2
Commit
530ae0f2
authored
Jun 26, 2018
by
Gav Wood
Committed by
asynchronous rob
Jun 26, 2018
Browse files
Newline after version (#248)
parent
870a9818
Changes
1
Hide whitespace changes
Inline
Side-by-side
cli/src/lib.rs
View file @
530ae0f2
...
...
@@ -126,12 +126,12 @@ pub fn run<I, T>(args: I) -> error::Result<()> where
let
core
=
reactor
::
Core
::
new
()
.expect
(
"tokio::Core could not be created"
);
let
yaml
=
load_yaml!
(
"./cli.yml"
);
let
matches
=
match
clap
::
App
::
from_yaml
(
yaml
)
.version
(
crate_version!
())
.get_matches_from_safe
(
args
)
{
let
matches
=
match
clap
::
App
::
from_yaml
(
yaml
)
.version
(
&
(
crate_version!
()
.to_owned
()
+
"
\n
"
)[
..
]
)
.get_matches_from_safe
(
args
)
{
Ok
(
m
)
=>
m
,
Err
(
ref
e
)
if
e
.kind
==
clap
::
ErrorKind
::
VersionDisplayed
=>
return
Ok
(()),
Err
(
ref
e
)
if
e
.kind
==
clap
::
ErrorKind
::
HelpDisplayed
||
e
.kind
==
clap
::
ErrorKind
::
VersionDisplayed
=>
{
Err
(
ref
e
)
if
e
.kind
==
clap
::
ErrorKind
::
HelpDisplayed
=>
{
let
_
=
clap
::
App
::
from_yaml
(
yaml
)
.print_long_help
();
return
Ok
(())
;
return
Ok
(())
}
Err
(
e
)
=>
return
Err
(
e
.into
()),
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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