Improve help menu

This commit is contained in:
KnugiHK
2024-02-13 15:11:53 +08:00
parent 54e0b43888
commit dedfce8feb
2 changed files with 14 additions and 2 deletions

View File

@@ -117,7 +117,8 @@ Invoke the wtsexporter with --help option will show you all options available.
usage: wtsexporter [-h] [-a] [-i] [-e EXPORTED] [-w WA] [-m MEDIA] [-b BACKUP] [-o OUTPUT] [-j [JSON]] [-d DB] usage: wtsexporter [-h] [-a] [-i] [-e EXPORTED] [-w WA] [-m MEDIA] [-b BACKUP] [-o OUTPUT] [-j [JSON]] [-d DB]
[-k KEY] [-t TEMPLATE] [-s] [-c] [--offline OFFLINE] [--size [SIZE]] [--no-html] [--check-update] [-k KEY] [-t TEMPLATE] [-s] [-c] [--offline OFFLINE] [--size [SIZE]] [--no-html] [--check-update]
[--assume-first-as-me] [--no-avatar] [--import] [--business] [--preserve-timestamp] [--wab WAB] [--assume-first-as-me] [--no-avatar] [--import] [--business] [--preserve-timestamp] [--wab WAB]
[--time-offset {-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14}] [--time-offset {-12 to 14}] [--date DATE] [--date-format FORMAT] [--include [phone number ...]]
[--exclude [phone number ...]]
A customizable Android and iPhone WhatsApp database parser that will give you the history of your WhatsApp A customizable Android and iPhone WhatsApp database parser that will give you the history of your WhatsApp
conversations in HTML and JSON. Android Backup Crypt12, Crypt14 and Crypt15 supported. conversations in HTML and JSON. Android Backup Crypt12, Crypt14 and Crypt15 supported.
@@ -155,8 +156,14 @@ options:
--preserve-timestamp Preserve the modification timestamp of the extracted files (iOS only) --preserve-timestamp Preserve the modification timestamp of the extracted files (iOS only)
--wab WAB, --wa-backup WAB --wab WAB, --wa-backup WAB
Path to contact database in crypt15 format Path to contact database in crypt15 format
--time-offset {-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14} --time-offset {-12 to 14}
Offset in hours (-12 to 14) for time displayed in the output Offset in hours (-12 to 14) for time displayed in the output
--date DATE The date filter in specific format (inclusive)
--date-format FORMAT The date format for the date filter
--include [phone number ...]
Include chats that match the supplied phone number
--exclude [phone number ...]
Exclude chats that match the supplied phone number
WhatsApp Chat Exporter: 0.9.7 Licensed with MIT WhatsApp Chat Exporter: 0.9.7 Licensed with MIT
``` ```

View File

@@ -206,30 +206,35 @@ def main():
default=0, default=0,
type=int, type=int,
choices=range(-12, 15), choices=range(-12, 15),
metavar="{-12 to 14}",
help="Offset in hours (-12 to 14) for time displayed in the output" help="Offset in hours (-12 to 14) for time displayed in the output"
) )
parser.add_argument( parser.add_argument(
"--date", "--date",
dest="filter_date", dest="filter_date",
default=None, default=None,
metavar="DATE",
help="The date filter in specific format (inclusive)" help="The date filter in specific format (inclusive)"
) )
parser.add_argument( parser.add_argument(
"--date-format", "--date-format",
dest="filter_date_format", dest="filter_date_format",
default="%Y-%m-%d %H:%M", default="%Y-%m-%d %H:%M",
metavar="FORMAT",
help="The date format for the date filter" help="The date format for the date filter"
) )
parser.add_argument( parser.add_argument(
"--include", "--include",
dest="filter_chat_include", dest="filter_chat_include",
nargs='*', nargs='*',
metavar="phone number",
help="Include chats that match the supplied phone number" help="Include chats that match the supplied phone number"
) )
parser.add_argument( parser.add_argument(
"--exclude", "--exclude",
dest="filter_chat_exclude", dest="filter_chat_exclude",
nargs='*', nargs='*',
metavar="phone number",
help="Exclude chats that match the supplied phone number" help="Exclude chats that match the supplied phone number"
) )
args = parser.parse_args() args = parser.parse_args()