Revision 537c4eff2a0c50f52a38f7f357c43171697587a2 authored by Antonio Valentino on 04 August 2022, 08:18:55 UTC, committed by GitHub on 04 August 2022, 08:18:55 UTC
+ add `__main__.py` for the initial implementation of the single-entrypoint script
   - add sub-parser grabbing functions `get_*_parser()` for all executable scripts
   - add `_autocomplete()`
   - add the main parser function `get_parser()` with groupped calls for sub-parsers
   - add `main()` with proper logging info and exit code

+ `utils.arg_utils.py`:
   - rename from  `arg_group.py` to `arg_utils.py`
   - add `create_argument_parser()` to create parser with or without sub-parsers
   - call `create_argument_parser()` from all executable scripts in `mintpy` folder.

+ `setup.py`: add the following optional requirements:
   - argcomplete
   - platemotion and astropy

+ `timeseries2velocity.py`: rename `inps.step` to `inps.stepDate` to avoid weird initiation bug in sub-command mode.

Co-authored-by: Zhang Yunjun <yunjunzgeo@gmail.com>
1 parent 00dd106
History
File Mode Size
ISSUE_TEMPLATE
workflows
PULL_REQUEST_TEMPLATE.md -rw-r--r-- 584 bytes
config.yml -rw-r--r-- 1.5 KB

back to top