@@ -58,10 +60,10 @@ export default class Parity extends Component {
{ this.renderChains() }
{ this.renderModes() }
-
+
{ this.renderLogsConfig() }
);
diff --git a/parity/blockchain.rs b/parity/blockchain.rs
index f21364214..eee785102 100644
--- a/parity/blockchain.rs
+++ b/parity/blockchain.rs
@@ -208,9 +208,7 @@ fn execute_import_light(cmd: ImportBlockchain) -> Result<(), String> {
config.queue.max_mem_use = cmd.cache_config.queue() as usize * 1024 * 1024;
config.queue.verifier_settings = cmd.verifier_settings;
- // TODO: could epoch signals be avilable at the end of the file?
- let fetch = ::light::client::fetch::unavailable();
- let service = LightClientService::start(config, &spec, fetch, &client_path, cache)
+ let service = LightClientService::start(config, &spec, &client_path, cache)
.map_err(|e| format!("Failed to start client: {}", e))?;
// free up the spec in memory.
diff --git a/parity/cli/mod.rs b/parity/cli/mod.rs
index b5b949cc7..e181bf88d 100644
--- a/parity/cli/mod.rs
+++ b/parity/cli/mod.rs
@@ -17,387 +17,949 @@
#[macro_use]
mod usage;
mod presets;
-use dir;
usage! {
{
- // Commands
- cmd_daemon: bool,
- cmd_wallet: bool,
- cmd_account: bool,
- cmd_new: bool,
- cmd_list: bool,
- cmd_export: bool,
- cmd_blocks: bool,
- cmd_state: bool,
- cmd_import: bool,
- cmd_signer: bool,
- cmd_new_token: bool,
- cmd_sign: bool,
- cmd_reject: bool,
- cmd_snapshot: bool,
- cmd_restore: bool,
- cmd_ui: bool,
- cmd_dapp: bool,
- cmd_tools: bool,
- cmd_hash: bool,
- cmd_kill: bool,
- cmd_db: bool,
+ // CLI subcommands
+ // Subcommands must start with cmd_ and have '_' in place of '-'
+ // Sub-subcommands must start with the name of the subcommand
+ // Arguments must start with arg_
- // Arguments
- arg_pid_file: String,
- arg_file: Option
,
- arg_path: Vec,
- arg_id: Option,
+ CMD cmd_ui {
+ "Manage ui",
+ }
- // Flags
- // -- Legacy Options
- flag_geth: bool,
- flag_testnet: bool,
- flag_import_geth_keys: bool,
- flag_datadir: Option,
- flag_networkid: Option,
- flag_peers: Option,
- flag_nodekey: Option,
- flag_nodiscover: bool,
- flag_jsonrpc: bool,
- flag_jsonrpc_off: bool,
- flag_webapp: bool,
- flag_dapps_off: bool,
- flag_rpc: bool,
- flag_rpcaddr: Option,
- flag_rpcport: Option,
- flag_rpcapi: Option,
- flag_rpccorsdomain: Option,
- flag_ipcdisable: bool,
- flag_ipc_off: bool,
- flag_ipcapi: Option,
- flag_ipcpath: Option,
- flag_gasprice: Option,
- flag_etherbase: Option,
- flag_extradata: Option,
- flag_cache: Option,
+ CMD cmd_dapp
+ {
+ "Manage dapps",
- // -- Miscellaneous Options
- flag_version: bool,
- flag_no_config: bool,
+ ARG arg_dapp_path: (Option) = None,
+ "",
+ "Path to the dapps",
+ }
+
+ CMD cmd_daemon
+ {
+ "Use Parity as a daemon",
+
+ ARG arg_daemon_pid_file: (Option) = None,
+ "",
+ "Path to the pid file",
+ }
+
+ CMD cmd_account
+ {
+ "Manage accounts",
+
+ CMD cmd_account_new {
+ "Create a new acount",
+
+ ARG arg_account_new_password: (Option) = None,
+ "--password=[FILE]",
+ "Path to the password file",
+ }
+
+ CMD cmd_account_list {
+ "List existing accounts",
+ }
+
+ CMD cmd_account_import
+ {
+ "Import account",
+
+ ARG arg_account_import_path : (Option>) = None,
+ "...",
+ "Path to the accounts",
+ }
+ }
+
+ CMD cmd_wallet
+ {
+ "Manage wallet",
+
+ CMD cmd_wallet_import
+ {
+ "Import wallet",
+
+ ARG arg_wallet_import_password: (Option) = None,
+ "--password=[FILE]",
+ "Path to the password file",
+
+ ARG arg_wallet_import_path: (Option) = None,
+ "",
+ "Path to the wallet",
+ }
+ }
+
+ CMD cmd_import
+ {
+ "Import blockchain",
+
+ ARG arg_import_format: (Option) = None,
+ "--format=[FORMAT]",
+ "Import in a given format. FORMAT must be either 'hex' or 'binary'. (default: auto)",
+
+ ARG arg_import_file: (Option