Kind of related to: #4072
The gaiacli tx send command's --from flag carries a required parameter. As such it should be a positional argument rather than a required flag. Marking a flag required is usually a good sign that such parameter should be passed as a positional argument.
Positional arguments are inherently required as they represent inputs without which the command cannot operate. Conversely, flags are traditionally used to modify a command behaviour and are innatum optional.
Description
As A user of gaiacli
I Want to broadcast/generate a send tx with gaiacli tx send
So That I can broadcast a tx/generate a specimen of a tx.
Acceptance Criteria
AC1
Given I can access my key foo in the local keybase
When I run gaiacli tx send foo to_address amount
Then a send tx (from: foo's address; to: to_address address; amount: amount) is generated and broadcast to a node for further validation/processing.
AC2
Given I have no access to the local keybase
When I run gaiacli tx send --generate-only from_address to_address amount
Then a send tx (from: foo_address; to: to_address; amount: amount) specimen is generated and printed out to screen.
For Admin Use
Kind of related to: #4072
The
gaiacli tx sendcommand's--fromflag carries a required parameter. As such it should be a positional argument rather than a required flag. Marking a flag required is usually a good sign that such parameter should be passed as a positional argument.Positional arguments are inherently required as they represent inputs without which the command cannot operate. Conversely, flags are traditionally used to modify a command behaviour and are innatum optional.
Description
As A user of
gaiacliI Want to broadcast/generate a send tx with
gaiacli tx sendSo That I can broadcast a tx/generate a specimen of a tx.
Acceptance Criteria
AC1
Given I can access my key
fooin the local keybaseWhen I run
gaiacli tx send foo to_address amountThen a send tx (from:
foo's address; to:to_addressaddress; amount:amount) is generated and broadcast to a node for further validation/processing.AC2
Given I have no access to the local keybase
When I run
gaiacli tx send --generate-only from_address to_address amountThen a send tx (from:
foo_address; to:to_address; amount:amount) specimen is generated and printed out to screen.For Admin Use