mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
add some color to usage help
This commit is contained in:
@@ -9,7 +9,7 @@ from datetime import datetime
|
||||
from logging.handlers import RotatingFileHandler
|
||||
from typing import Any, Final
|
||||
|
||||
import certifi
|
||||
import certifi, colorama
|
||||
from overrides import overrides
|
||||
from ruamel.yaml import YAML
|
||||
from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException, TimeoutException, WebDriverException
|
||||
@@ -28,6 +28,8 @@ LOG_ROOT:Final[logging.Logger] = logging.getLogger()
|
||||
LOG:Final[logging.Logger] = logging.getLogger("kleinanzeigen_bot")
|
||||
LOG.setLevel(logging.INFO)
|
||||
|
||||
colorama.init()
|
||||
|
||||
|
||||
class KleinanzeigenBot(SeleniumMixin):
|
||||
|
||||
@@ -131,7 +133,7 @@ class KleinanzeigenBot(SeleniumMixin):
|
||||
exe = "python -m kleinanzeigen_bot"
|
||||
|
||||
print(textwrap.dedent(f"""\
|
||||
Usage: {exe} COMMAND [OPTIONS]
|
||||
Usage: {colorama.Fore.LIGHTMAGENTA_EX}{exe} COMMAND [OPTIONS]{colorama.Style.RESET_ALL}
|
||||
|
||||
Commands:
|
||||
publish - (re-)publishes ads
|
||||
|
||||
@@ -32,6 +32,7 @@ classifiers = [ # https://pypi.org/classifiers/
|
||||
]
|
||||
requires-python = ">=3.10,<3.13" # <3.12 required for pyinstaller
|
||||
dependencies = [
|
||||
"colorama~=0.4",
|
||||
"coloredlogs~=15.0",
|
||||
"overrides~=7.4",
|
||||
"ruamel.yaml~=0.18",
|
||||
|
||||
Reference in New Issue
Block a user