patchbomb: extract a bunch of nested functions
- clarifies dependencies on variables
- extracts potentially useful utility functions
- no need for separate confirm() function
- error message style conformance
- PEP 8 conformance
#!/bin/shhghg -qhg helphg -q helphg add -hhg add --skjdfkshg help diffhg help statushg -q help statushg help foohg skjdfksexit 0