diff --git a/RECORD_ADD_DOCUMENTATION.md b/RECORD_ADD_DOCUMENTATION.md index 99372f7c2..69fd803aa 100644 --- a/RECORD_ADD_DOCUMENTATION.md +++ b/RECORD_ADD_DOCUMENTATION.md @@ -403,13 +403,15 @@ The `--self-destruct` option creates temporary records that automatically delete ### Syntax ```bash ---self-destruct [(m)inutes|(h)ours|(d)ays] +--self-destruct [(mi)nutes|(h)ours|(d)ays|(mo)nths|(y)ears] ``` **Time Units:** -- `m` or `minutes` - Minutes (default if no unit specified) +- `mi` or `minutes` - Minutes (default if no unit specified) - `h` or `hours` - Hours - `d` or `days` - Days +- `mo` or `months` - Months +- `y` or `years` - Years ### Examples @@ -428,7 +430,7 @@ record-add -t "Temporary Server Access" -rt login \ record-add -t "Guest WiFi Access" -rt wifiCredentials \ text.ssid="Company-Guest" \ password=TempPass123 \ - --self-destruct 30m \ + --self-destruct 30mi \ --notes "Visitor access for meeting" ``` @@ -647,4 +649,4 @@ record-add --syntax-help # View record-update syntax help record-update --help -``` \ No newline at end of file +``` diff --git a/keepercommander/commands/discoveryrotation.py b/keepercommander/commands/discoveryrotation.py index fda7bb82f..a5ebde9f1 100644 --- a/keepercommander/commands/discoveryrotation.py +++ b/keepercommander/commands/discoveryrotation.py @@ -3701,7 +3701,7 @@ class PAMGatewayActionRotateCommand(Command): # Email and share link arguments parser.add_argument('--self-destruct', dest='self_destruct', action='store', - metavar='[(m)inutes|(h)ours|(d)ays]', + metavar='[(mi)inutes|(h)ours|(d)ays|(mo)nths|(y)ears]', help='Create one-time share link that expires after duration') parser.add_argument('--email-config', dest='email_config', action='store', help='Email configuration name to use for sending (required with --send-email)') diff --git a/keepercommander/commands/record_edit.py b/keepercommander/commands/record_edit.py index 2f04e7136..c0750fdb1 100644 --- a/keepercommander/commands/record_edit.py +++ b/keepercommander/commands/record_edit.py @@ -50,7 +50,7 @@ record_add_parser.add_argument('--folder', dest='folder', action='store', help='folder name or UID to store record') record_add_parser.add_argument('--self-destruct', dest='self_destruct', action='store', - metavar='[(m)inutes|(h)ours|(d)ays]', + metavar='[(mi)nutes|(h)ours|(d)ays|(mo)nths|(y)ears]', help='Time period record share URL is valid. The record will be deleted in your vault in 5 minutes since open') record_add_parser.add_argument('--pam-config', dest='pam_config', action='store', help='PAM configuration UID or name to sync password to cloud provider (Azure AD, AWS IAM)')