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

@ -961,7 +961,7 @@ def get_parser():
# Action: log
log = sub.add_parser("log", help="follow the pmbootstrap logfile")
log.add_argument("-n", "--lines", default="60", help="count of initial output lines")
log.add_argument("-n", "--lines", type=int, default=60, help="count of initial output lines")
log.add_argument("-c", "--clear", help="clear the log", action="store_true", dest="clear_log")
# Action: zap