Commit Graph

33 Commits

Author SHA1 Message Date
rffontenelle a34a9fed11 Improve parse_args (#2)
ci/woodpecker/push/woodpecker Pipeline was successful Details
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
Julien Palard 5dd4a1c4aa
Drop Python 3.6 (#107) 2023-03-30 23:19:29 +02:00
Julien Palard df2a0a5480
Bump version to 1.0.1 2023-03-30 22:55:27 +02:00
Ege Akman b5c70a7654
Assure powrap is compatible with Windows (#105) 2023-03-30 22:54:35 +02:00
Mathieu Dupuy c826541447 fix mispellings 2022-04-26 21:53:05 +02:00
Julien Palard dc9f814ae9 Add a -C like make and git to tell where to work. 2021-10-25 16:11:29 +02:00
Julien Palard 09d24a9ccc Bump version to 0.4.0 2020-12-03 13:19:49 +01:00
Julien Palard e58507b36e Move out of travis. 2020-12-03 13:10:26 +01:00
Julien Palard a1a21ed2fd powrap: Add --diff option. 2020-12-03 13:00:02 +01:00
Álvaro Mondéjar 6eff8b9160
Fix pofiles discovering logic in '--modified' option when files are renamed. (#86) 2020-10-14 13:27:13 +02:00
Julien Palard 01a0586f23 Bump version: 0.3.2 → 0.3.3 2020-09-29 17:06:20 +02:00
Christophe Nanteuil 1b392004a7
Handle file errors (#74) 2020-09-29 17:04:53 +02:00
Julien Palard 753c6993f1 Bump dev requirements. 2020-06-22 23:15:44 +02:00
Julien Palard 0152dc85db On normal run, do not EXIT_FAILURE when no failures are encontred. Fixes #19. 2020-01-30 10:12:52 +01:00
Julien Palard fde428ead7
A minimum test set 2019-12-10 10:09:21 +01:00
Julien Palard 3897a7fb0b Bump version: 0.3.1a1 → 0.3.1 2019-12-05 23:09:03 +01:00
Julien Palard eaa60a5e82 Pre-release for 0.3.1. 2019-12-01 23:59:11 +01:00
Julien Palard 9ae2b58684 Dot at end of sentence. 2019-11-26 22:22:46 +01:00
Julien Palard 179339eccf Whine if no or invalid files are given. 2019-11-26 22:22:05 +01:00
Julien Palard e5dc91e32e Bump version: 0.2.3 → 0.3.0 2019-03-14 22:29:58 +01:00
Julien Palard a5d6bbc755 Add a --check parameter. 2019-03-14 22:29:52 +01:00
Julien Palard 4b18867010 Bump version: 0.2.2 → 0.2.3 2019-03-14 22:05:16 +01:00
Julien Palard 53327c4b5e Add a --version parameter. 2019-03-14 22:05:03 +01:00
Julien Palard 613699e203 Bump version: 0.2.1 → 0.2.2 2019-03-14 21:59:37 +01:00
Julien Palard f5e031823e Add -q / --quiet option. 2019-03-14 21:59:37 +01:00
Julien Palard 70747b8339 Only return 1 if a file was actually modified. 2019-03-14 21:59:37 +01:00
Jules Lasne (jlasne) 0b6a141366 Exit 0 if nothing has been modified, else non-zero. 2019-03-14 18:22:02 +01:00
Julien Palard 0391e0e0b3 Bump version: 0.2.0 → 0.2.1 2018-11-17 15:55:09 +01:00
Julien Palard f98d3dfc61 Forcing encoding to utf-8 (to help on Windows). 2018-11-17 15:54:59 +01:00
Julien Palard 9c7cb97356 Bump version: 0.1.1 → 0.2.0 2018-11-11 21:47:59 +01:00
Julien Palard 9b48231942 FIX: Bumpversion config 2018-11-11 21:47:31 +01:00
Julien Palard c591cf5a25 Allow python -m powrap to work. 2018-11-11 21:28:34 +01:00
Julien Palard c8062875d8 Renamming project to powrap because it's re-wrapping, not re-indenting. 2018-11-10 16:24:51 +01:00