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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue