Refactor TargetRuntime as enum

Don't rename create symbol for substrate binaries
This commit is contained in:
holygits
2019-01-23 17:03:53 +13:00
parent 7c7a0713fc
commit c47adc1bd4
5 changed files with 74 additions and 53 deletions
+2 -2
View File
@@ -24,12 +24,12 @@ fn main() {
.short("e")
.takes_value(true)
.value_name("functions")
.help(&format!("Comma-separated list of exported functions to keep. Default: '{}'", target_runtime.call_symbol)))
.help(&format!("Comma-separated list of exported functions to keep. Default: '{}'", target_runtime.symbols().call)))
.get_matches();
let exports = matches
.value_of("exports")
.unwrap_or(target_runtime.call_symbol)
.unwrap_or(target_runtime.symbols().call)
.split(',')
.collect();