mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
args -> kwargs
This commit is contained in:
4
getvar
4
getvar
@@ -28,8 +28,8 @@ List all available variables:
|
||||
})
|
||||
parser.add_argument('variable', nargs='?')
|
||||
args = common.setup(parser)
|
||||
if args.variable:
|
||||
print(getattr(common, args.variable))
|
||||
if kwargs['variable']:
|
||||
print(getattr(common, kwargs['variable']))
|
||||
else:
|
||||
for attr in dir(common):
|
||||
if not attr.startswith('__'):
|
||||
|
||||
Reference in New Issue
Block a user