From d828c86715cc8abe3be82c666d882404ffad99ee Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 22 Jul 2021 01:07:35 +0300 Subject: [PATCH] add short options name --- .gitignore | 1 + minecraft_libs/__init__.py | 2 +- minecraft_libs/__main__.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f10b236..0df720b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ venv/ .tox/ minecraft_libs/__pycache__/ version.json +libs.txt diff --git a/minecraft_libs/__init__.py b/minecraft_libs/__init__.py index e6120ca..66d375f 100644 --- a/minecraft_libs/__init__.py +++ b/minecraft_libs/__init__.py @@ -1,3 +1,3 @@ """Parse version.json file and return libs""" -__version__ = "1.0.4" +__version__ = "1.0.5" diff --git a/minecraft_libs/__main__.py b/minecraft_libs/__main__.py index 05091cd..031ee0f 100644 --- a/minecraft_libs/__main__.py +++ b/minecraft_libs/__main__.py @@ -6,8 +6,8 @@ import click @click.command() -@click.option("--platform", default=sys.platform, help="Output platform (win32, linux, darwin).") -@click.option("--output", default="tty", help="Output option (tty, txt).") +@click.option("-p", "--platform", default=sys.platform, help="Output platform (win32, linux, darwin).") +@click.option("-o", "--output", default="tty", help="Output option (tty, txt).") def make_output(platform, output): """Return libraries list"""