Migrate to argparse
john- opened this issue · 3 comments
The optparse
module is deprecated. Migrate to argparse
. This work is in progress.
Also, when debugging I noticed that the errors on ham2mon startup do not indicate what line generated the exception. I was going to add stack trace to end of the summary messages in the exception handling.
There are currently 3 relatively minor items in this branch:
- Migration from
optparse
toargparse
- Stack trace included as additional exception handling information
--debug
option that sends additional detail to a debug file
Reviewed argparse-squashed, looks good.
For note: max demod length, channel spacing, min file size, ctcss filtering, and wide FM are not included at this branch so not args for those.
The 'min file size' and 'max demod length' functions exist in this branch but have new names. Also, both are now in seconds:
max demod length = max_recording (seconds)
min file size = min_recording (now in seconds)
This is now part of main branch...closing this issue.