-
Notifications
You must be signed in to change notification settings - Fork 30
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
sim-cli: Improves CLI docs so help has a more friendly report #145
Conversation
7acc6b2
to
e6771ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨ lgtm once the clippy gods are appeased
sim-lib/src/lib.rs
Outdated
print_batch_size: print_batch_size.unwrap_or(DEFAULT_PRINT_BATCH_SIZE), | ||
expected_payment_msat: expected_payment_amount.unwrap_or(EXPECTED_PAYMENT_AMOUNT), | ||
activity_multiplier: activity_multiplier.unwrap_or(ACTIVITY_MULTIPLIER), | ||
print_batch_size: print_batch_size, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clippy sad
e6771ac
to
14b806e
Compare
This should be good now |
… are covered. This makes some optional params to the simulator mandatory and moves the defaulting behavior to the CLI so clap can take care of it. The main rationale for it is so we can easily report the defaults. Also, restricts `print_batch_size` to be `> 0`.
14b806e
to
de1b2cb
Compare
… are covered. (bitcoin-dev-project#145) This makes some optional params to the simulator mandatory and moves the defaulting behavior to the CLI so clap can take care of it. The main rationale for it is so we can easily report the defaults. Also, restricts `print_batch_size` to be `> 0`.
… are covered. (#145) This makes some optional params to the simulator mandatory and moves the defaulting behavior to the CLI so clap can take care of it. The main rationale for it is so we can easily report the defaults. Also, restricts `print_batch_size` to be `> 0`.
sim-cli help
is pretty unfriendly atm, add docs so the args/options are covered.This makes some optional params to the simulator mandatory and moves the defaulting behavior to the CLI so clap can take care of it. The main rationale for it is so we can easily report the defaults.
Also, restricts
print_batch_size
to be> 0
, as discussed #146 (comment)