Skip to content

Turn --from into a positional argument in gaiacli tx send #4142

@alessio

Description

@alessio

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

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions