Fix types of pmb arguments (MR 2370)

- Change some arguments' types to bool to avoid type mismatch errors
  after refactoring in the future
- Add more arguments from parse/arguments with corresponding types
- Change type of pmbootstrap log --lines argument to int
This commit is contained in:
Anri Dellal 2024-07-15 16:43:50 +03:00 committed by Oliver Smith
parent b98c5e2cab
commit b8ca63dc2d
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 58 additions and 45 deletions

View file

@ -64,7 +64,7 @@ def run_command(args: PmbArgs):
command: Command
# Would be nice to use match case but we support Python 3.8
if args.action == "log":
command = Log(args.clear_log, int(args.lines))
command = Log(args.clear_log, args.lines)
elif args.action == "index":
# FIXME: should index support --arch?
command = Index()