Skip to content

Commit

Permalink
Client: Make 'address' a required option
Browse files Browse the repository at this point in the history
And print the error message in a more user-friendly way.
  • Loading branch information
Geod24 committed Oct 18, 2021
1 parent d5903ab commit 45d8253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/agora/cli/client/Common.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public struct ClientCLIArgs
passThrough ? config.keepEndOfOptions : config.caseInsensitive,
passThrough ? config.passThrough : config.noPassThrough,

"address",
config.required, "address",
"Address of a node to send to (including protocol and optionally the port if non-standard)",
&this.address,
);
Expand Down
2 changes: 1 addition & 1 deletion source/agora/cli/client/GenTxProcess.d
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public int genTxProcess (string[] args, ref string[] outputs,
}
catch (Exception ex)
{
writeln("Exception while generating transactions: ", ex);
writeln("Error: ", ex.msg);
printGenTxHelp(outputs);
return 1;
}
Expand Down

0 comments on commit 45d8253

Please sign in to comment.