Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
d17dcc18
Commit
d17dcc18
authored
7 years ago
by
Guanqun Lu
Committed by
asynchronous rob
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
move version out of yaml and let it populate dynamically from package info (#26)
parent
db78e5fb
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
substrate/cli/src/cli.yml
+0
-1
0 additions, 1 deletion
substrate/cli/src/cli.yml
substrate/cli/src/lib.rs
+1
-1
1 addition, 1 deletion
substrate/cli/src/lib.rs
with
1 addition
and
2 deletions
substrate/cli/src/cli.yml
+
0
−
1
View file @
d17dcc18
name
:
polkadot
version
:
"
1.0.0"
author
:
"
Parity
Team
<admin@polkadot.io>"
about
:
Polkadot Node Rust Implementation
args
:
...
...
This diff is collapsed.
Click to expand it.
substrate/cli/src/lib.rs
+
1
−
1
View file @
d17dcc18
...
...
@@ -46,7 +46,7 @@ pub fn run<I, T>(args: I) -> error::Result<()> where
T
:
Into
<
std
::
ffi
::
OsString
>
+
Clone
,
{
let
yaml
=
load_yaml!
(
"./cli.yml"
);
let
matches
=
clap
::
App
::
from_yaml
(
yaml
)
.get_matches_from_safe
(
args
)
?
;
let
matches
=
clap
::
App
::
from_yaml
(
yaml
)
.
version
(
crate_version!
())
.
get_matches_from_safe
(
args
)
?
;
// TODO [ToDr] Split paremeters parsing from actual execution.
let
log_pattern
=
matches
.value_of
(
"log"
)
.unwrap_or
(
""
);
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment