get-transaction: -t, --transaction flags

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
This commit is contained in:
Ciro S. Costa 2021-07-31 07:02:23 -04:00
parent 07bb1726bd
commit 4ee9f9defa

View file

@ -31,9 +31,9 @@ func (c *getTransactionCommand) Cmd() *cobra.Command {
RunE: c.RunE,
}
cmd.Flags().StringVar(&c.Txn, "txn",
cmd.Flags().StringVarP(&c.Txn, "transaction", "t",
"", "hash of a transaction to lookup")
_ = cmd.MarkFlagRequired("txn")
_ = cmd.MarkFlagRequired("transaction")
cmd.Flags().BoolVar(&c.JSON, "json",
false, "whether or not to output the result as json")