You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lfss/cli/user.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,10 @@ async def _main():
19
19
sp_add.add_argument('--max-storage', type=parse_storage_size, default="10G", help="Maximum storage size, e.g. 1G, 100M, 10K, default is 10G")
20
20
21
21
sp_add_virtual=sp.add_parser('add-virtual', help="Add a virtual (hidden) user, username will be prefixed with '.v-'")
22
-
sp_add_virtual.add_argument('--tag', type=str, default=None, help="Tag for the virtual user, will be embedded in the username for easier identification")
22
+
sp_add_virtual.add_argument('--tag', type=str, default="", help="Tag for the virtual user, will be embedded in the username for easier identification")
23
23
sp_add_virtual.add_argument('--peers', type=str, default="", help="Peer users and their access levels in the format 'READ:user1,user2;WRITE:user3'")
24
24
sp_add_virtual.add_argument('--max-storage', type=parse_storage_size, default="1G", help="Maximum storage size for the virtual user, e.g. 1G, 100M, 10K, default is 1G")
25
+
sp_add_virtual.add_argument('--expire', type=str, default=None, help="Expire time in seconds or a string like '1d2h3m4s'. If not provided, the user will never expire.")
0 commit comments