|
@@ -23,6 +23,9 @@ class UserCommand(AppContextCommand):
|
23
|
23
|
self._user_api = UserApi(None)
|
24
|
24
|
self._group_api = GroupApi(None)
|
25
|
25
|
|
|
26
|
+ def get_description(self):
|
|
27
|
+ return '''Create or update user.'''
|
|
28
|
+
|
26
|
29
|
def get_parser(self, prog_name):
|
27
|
30
|
parser = super().get_parser(prog_name)
|
28
|
31
|
|
|
@@ -44,14 +47,6 @@ class UserCommand(AppContextCommand):
|
44
|
47
|
)
|
45
|
48
|
|
46
|
49
|
parser.add_argument(
|
47
|
|
- "-u",
|
48
|
|
- "--update",
|
49
|
|
- help='Update user password if exist',
|
50
|
|
- dest='update',
|
51
|
|
- action='store_true'
|
52
|
|
- )
|
53
|
|
-
|
54
|
|
- parser.add_argument(
|
55
|
50
|
"-g",
|
56
|
51
|
"--add-to-group",
|
57
|
52
|
help='Add user to group',
|