Skip to content

Commit 5decc07

Browse files
feat : update platforms list and the --platform option (#246)
Co-authored-by: spageektti <[email protected]>
1 parent e273503 commit 5decc07

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

tldr.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,17 @@
4242
URLOPEN_CONTEXT.verify_mode = ssl.CERT_NONE
4343

4444
OS_DIRECTORIES = {
45-
"linux": "linux",
45+
"android": "android",
4646
"darwin": "osx",
4747
"freebsd": "freebsd",
48-
"openbsd": "openbsd",
48+
"linux": "linux",
49+
"macos": "osx",
4950
"netbsd": "netbsd",
51+
"openbsd": "openbsd",
52+
"osx": "osx",
5053
"sunos": "sunos",
51-
"win32": "windows"
54+
"win32": "windows",
55+
"windows": "windows"
5256
}
5357

5458

@@ -515,9 +519,12 @@ def create_parser() -> ArgumentParser:
515519
nargs=1,
516520
default=None,
517521
type=str,
518-
choices=['linux', 'osx', 'sunos', 'windows', 'common'],
522+
choices=['android', 'freebsd', 'linux', 'netbsd', 'openbsd', 'osx', 'sunos',
523+
'windows', 'common'],
519524
metavar='PLATFORM',
520-
help="Override the operating system [linux, osx, sunos, windows, common]"
525+
help="Override the operating system "
526+
"[android, freebsd, linux, netbsd, openbsd,"
527+
" osx, sunos, windows, common]"
521528
)
522529

523530
parser.add_argument('-l', '--list',

0 commit comments

Comments
 (0)