Added option test and modified help msg

This commit is contained in:
Jules Lasne (jlasne - seluj78) 2020-09-15 14:04:35 +02:00
parent 8e30f474b3
commit ca880a7dc5
2 changed files with 7 additions and 3 deletions

View File

@ -31,9 +31,9 @@ optional arguments:
-j, --json format output as JSON
--exclude-fuzzy select only files without fuzzy entries
--exclude-reserved select only files that aren't reserved
--only-reserved Will print out only reserved files
--only-reserved select only only reserved files
--show-reservation-dates
show issue creation dates
show issue creation dates
--version show program's version number and exit
```

View File

@ -366,7 +366,7 @@ def main() -> None:
"--only-reserved",
action="store_true",
dest="only_reserved",
help="Will print out only reserved files",
help="select only only reserved files",
)
parser.add_argument(
@ -388,5 +388,9 @@ def main() -> None:
print("Cannot pass --exclude-fuzzy and --only-fuzzy at the same time")
exit(1)
if args.get("exclude_reserved") and args.get("only_reserved"):
print("Cannot pass --exclude-reserved and --only-reserved at the same time")
exit(1)
# Launch the processing itself
exec_potodo(**args)