Skip to content

feat : update platforms list and the --platform option #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 27, 2024
14 changes: 9 additions & 5 deletions tldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@
URLOPEN_CONTEXT.verify_mode = ssl.CERT_NONE

OS_DIRECTORIES = {
"linux": "linux",
"android": "android",
"darwin": "osx",
"freebsd": "freebsd",
"openbsd": "openbsd",
"linux": "linux",
"macos": "osx"
"netbsd": "netbsd",
"openbsd": "openbsd",
"osx": "osx",
"sunos": "sunos",
"win32": "windows"
"win32": "windows",
"windows": "windows"
}


Expand Down Expand Up @@ -515,9 +519,9 @@ def create_parser() -> ArgumentParser:
nargs=1,
default=None,
type=str,
choices=['linux', 'osx', 'sunos', 'windows', 'common'],
choices=['android', 'freebsd', 'linux', 'netbsd', 'openbsd', 'osx', 'sunos', 'windows', 'common'],
metavar='PLATFORM',
help="Override the operating system [linux, osx, sunos, windows, common]"
help="Override the operating system [android, freebsd, linux, netbsd, openbsd, osx, sunos, windows, common]"
)

parser.add_argument('-l', '--list',
Expand Down
Loading