mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-06-02 06:16:10 +00:00
Deprecate --iphone and replace with --ios
This commit is contained in:
@@ -32,6 +32,7 @@ def main():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-i',
|
'-i',
|
||||||
'--iphone',
|
'--iphone',
|
||||||
|
'--ios',
|
||||||
dest='iphone',
|
dest='iphone',
|
||||||
default=False,
|
default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
@@ -187,6 +188,9 @@ def main():
|
|||||||
contacts(db, data)
|
contacts(db, data)
|
||||||
|
|
||||||
elif args.iphone:
|
elif args.iphone:
|
||||||
|
import sys
|
||||||
|
if "--iphone" in sys.argv:
|
||||||
|
print("WARNING: The --iphone flag is deprecated and will be removed in the future. Use --ios instead.")
|
||||||
messages = extract_iphone.messages
|
messages = extract_iphone.messages
|
||||||
media = extract_iphone.media
|
media = extract_iphone.media
|
||||||
vcard = extract_iphone.vcard
|
vcard = extract_iphone.vcard
|
||||||
|
|||||||
Reference in New Issue
Block a user