From b017b582bf8d88a206f5818cdee838288e6058dd Mon Sep 17 00:00:00 2001 From: Zev Averbach Date: Fri, 31 Mar 2023 19:14:45 +0200 Subject: [PATCH] minor improvement to when you don't supply any args --- publify/publify.py | 3 +-- setup.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/publify/publify.py b/publify/publify.py index 17ae1ba..f74e6d9 100644 --- a/publify/publify.py +++ b/publify/publify.py @@ -241,8 +241,7 @@ def deploy_site() -> None: print("Please provide a --custom-domain") return if "--root-dir" not in sys.argv: - print("Please provide a root directory") - return + return display_help() try: root_dir = pl.Path(sys.argv[sys.argv.index("--root-dir") + 1]) except IndexError: diff --git a/setup.py b/setup.py index 44d3408..1377490 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( name="publify", - version="0.1.2", + version="0.1.4", description="A CLI for publishing sites to Netlify and assigning custom domains to them.", author="Zev Averbach", author_email="zev@averba.ch",