forked from Mirror/pmbootstrap
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:
parent
b98c5e2cab
commit
b8ca63dc2d
3 changed files with 58 additions and 45 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue