Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show structure of JSON arguments in help #5

Open
sgeisler opened this Issue Mar 13, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@sgeisler
Copy link

sgeisler commented Mar 13, 2019

hal tx create -h only shows hal tx create [FLAGS] <tx-info> and <tx-info> the transaction info in JSON as usage documentation which isn't sufficient to use the command. The best option would be to display the JSON schema. But I see that this could be overly complicated and long, so maybe an exhaustive example could be enough for all practical purposes?

@stevenroose

This comment has been minimized.

Copy link
Owner

stevenroose commented Mar 13, 2019

Hmm, good point. It's basically the reverse of hal tx decode (with some fields ignored if you provide them).

Related to this, I've been thinking of having a hal tx decode --minimal that doesn't print redundant info (like size, txid, etc; just minimal information to reconstruct the tx with hal tx create). In that case we might refer to that and then it wouldn't be that hard to provide an example.

Certainly it needs some more information.

@stevenroose

This comment has been minimized.

Copy link
Owner

stevenroose commented Mar 13, 2019

Would #6 do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.