Show HN: Centered heap - a heap that can move in an array
github.com3 pointsby ben5090 comments
1. do-step-one --dry-run
2. (do validation)
3. do-step-one --real-run
4. (do validation)
Many commandline parsing libraries assume you're doing booleans, and I think --dry-run and --no-dry-run is confusing. And, internally, you have a boolean flag so there's always the possibility of some code getting it backwards. switch(run) {
case dry_run:
print("Would do this...");
case real_run:
do_real_thing();
}