forked from AFPy/potodo
Added option test and modified help msg
This commit is contained in:
parent
8e30f474b3
commit
ca880a7dc5
|
@ -31,7 +31,7 @@ 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
|
||||
--version show program's version number and exit
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user