powrap/powrap
rffontenelle a34a9fed11
ci/woodpecker/push/woodpecker Pipeline was successful Details
Improve parse_args (#2)
This solves two minor issues of the `powrap --help` output:

- First one is that argparse shows short and then long form of --help option, while powrap's arguments show long and then short, causing it to look like:

```
options:
  -h, --help      show this help message and exit
  --modified, -m  Use git to find modified files ...
  -C GIT_ROOT     To use with --modified to tell ...
  --quiet, -q     Do not show progress bar ...
  ...
```

- The other thing is that the exit code is set in multi-line string, but not actually printed as multi-line string. While it looks compacted and OK in the printed help message, I assume that's not the intended so I set RawTextHelpFormatter to make sure the formatting is honored.

```
exit code: 0:nothing to do 1:would rewrap 127:error running msgcat
```

Reviewed-on: #2
Co-authored-by: rffontenelle <rffontenelle@gmail.com>
Co-committed-by: rffontenelle <rffontenelle@gmail.com>
2023-07-18 12:13:18 +00:00
..
__init__.py Bump version to 1.0.1 2023-03-30 22:55:27 +02:00
__main__.py Move out of travis. 2020-12-03 13:10:26 +01:00
powrap.py Improve parse_args (#2) 2023-07-18 12:13:18 +00:00