GithubHelp home page GithubHelp logo

Comments (4)

winxp5421 avatar winxp5421 commented on August 30, 2024 2

@unode Thank you for your time!
I will close this issue out.

from mmpy_bot.

unode avatar unode commented on August 30, 2024

Hi @winxp5421,

Thanks for the suggestion. We are aware that click's help output is not the most useful due to being designed for command-line usage.

Alternatively you can use regex based commands and human_description and category for a cleaner help text:

@listen_to(
    "^add-element +(?P<identifier>[\\w-]+) +[~]?(?P<channel>[\\w-]+) +(?P<url>[^\\s]+)(?: (?P<sensitive_url>[Yy]{1}))?",
    allowed_users=settings.PRIVILEGED_USERS,
    human_description="add-element <identifier> <channel> <url> [sensitive_url=Y/N]",
    category="announce",
    privileged=True,
)

from mmpy_bot.

winxp5421 avatar winxp5421 commented on August 30, 2024

Interesting, I will give that a shot.

Will mmpy-bot be dropping click support sometime in the near future?
I do not want to stick a ton of time into click-related stuff if this will be sunset in a few months' time.

Appreciate the suggestion!

from mmpy_bot.

unode avatar unode commented on August 30, 2024

Me and @attzonko discussed this briefly in the Discord chat. Click is an interesting feature but has some limitations that are a little annoying and difficult to work around. We won't be removing it anytime soon but it's possible that we will deprecate it if we find or implement a good alternative.

from mmpy_bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.