@@ -690,11 +690,9 @@ pub(super) fn apply_common_creation_options(
690690 include_transaction_args : bool ,
691691) -> Command {
692692 if include_node_address {
693- subcommand = subcommand. arg (
694- common:: node_address:: arg ( DisplayOrder :: NodeAddress as usize )
695- . required_unless_present ( show_simple_arg_examples:: ARG_NAME )
696- . required_unless_present ( show_json_args_examples:: ARG_NAME ) ,
697- ) ;
693+ subcommand = subcommand. arg ( common:: node_address:: arg (
694+ DisplayOrder :: NodeAddress as usize ,
695+ ) ) ;
698696 }
699697
700698 let secret_key_arg = if require_secret_key {
@@ -817,13 +815,13 @@ pub(super) mod output {
817815 }
818816}
819817
820- pub ( super ) mod transaction_path {
818+ pub ( super ) mod wasm_path {
821819 use super :: * ;
822820
823- const ARG_NAME : & str = "transaction -path" ;
824- const ARG_SHORT : char = 't ' ;
821+ const ARG_NAME : & str = "wasm -path" ;
822+ const ARG_SHORT : char = 'w ' ;
825823 const ARG_VALUE_NAME : & str = common:: ARG_PATH ;
826- const ARG_HELP : & str = "Path to input transaction file " ;
824+ const ARG_HELP : & str = "Path to compiled Wasm session code " ;
827825
828826 pub fn arg ( ) -> Arg {
829827 Arg :: new ( ARG_NAME )
@@ -2284,17 +2282,16 @@ pub(super) mod session {
22842282 show_simple_arg_examples_and_exit_if_required ( matches) ;
22852283 show_json_args_examples_and_exit_if_required ( matches) ;
22862284
2287- let transaction_path_str = transaction_path :: get ( matches) ;
2285+ let wasm_path_str = wasm_path :: get ( matches) ;
22882286
2289- if transaction_path_str . is_none ( ) {
2287+ if wasm_path_str . is_none ( ) {
22902288 return Err ( CliError :: InvalidArgument {
2291- context : "transaction_path " ,
2292- error : "Transaction path cannot be empty" . to_string ( ) ,
2289+ context : "wasm_path " ,
2290+ error : "Wasm path cannot be empty" . to_string ( ) ,
22932291 } ) ;
22942292 }
22952293
2296- let transaction_bytes =
2297- parse:: transaction_module_bytes ( transaction_path_str. unwrap_or_default ( ) ) ?;
2294+ let transaction_bytes = parse:: transaction_module_bytes ( wasm_path_str. unwrap_or_default ( ) ) ?;
22982295
22992296 let is_install_upgrade: bool = is_install_upgrade:: get ( matches) ;
23002297 let runtime = get_transaction_runtime ( matches) ?;
@@ -2310,7 +2307,7 @@ pub(super) mod session {
23102307
23112308 fn add_args ( session_subcommand : Command ) -> Command {
23122309 session_subcommand
2313- . arg ( transaction_path :: arg ( ) )
2310+ . arg ( wasm_path :: arg ( ) )
23142311 . arg ( session_entry_point:: arg ( ) )
23152312 . arg ( is_install_upgrade:: arg (
23162313 DisplayOrder :: IsInstallUpgrade as usize ,
0 commit comments