mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
gpoa: Fix argparser with default username as machine name
This commit is contained in:
parent
48d5e62598
commit
5eeadbeb06
@ -332,6 +332,7 @@ def parse_arguments():
|
||||
arguments = argparse.ArgumentParser(description='Generate configuration out of parsed policies')
|
||||
arguments.add_argument('user',
|
||||
type=str,
|
||||
nargs='?',
|
||||
default=get_machine_name(),
|
||||
help='Domain username ({}) to parse policies for'.format(get_machine_name()))
|
||||
arguments.add_argument('--dc',
|
||||
|
Loading…
x
Reference in New Issue
Block a user