From 8d0905ee6ced5e19b3a0e629de931697f2e02257 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Mon, 26 Feb 2024 16:45:22 +0000 Subject: [PATCH] feat: add BSD platforms to `--platform` option --- tldr.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tldr.py b/tldr.py index 3de8220..6ad25b8 100755 --- a/tldr.py +++ b/tldr.py @@ -441,9 +441,15 @@ def create_parser() -> ArgumentParser: nargs=1, default=None, type=str, - choices=['linux', 'osx', 'sunos', 'windows', 'common'], + choices=[ + 'freebsd', 'linux', 'macos', 'netbsd', 'openbsd', + 'osx', 'sunos', 'windows', 'common' + ], metavar='PLATFORM', - help="Override the operating system [linux, osx, sunos, windows, common]" + help=( + "Override the operating system " + "[freebsd, linux, netbsd, openbsd, osx (macos), sunos, windows, common]" + ) ) parser.add_argument('-l', '--list',