Creating CLIs in Python with Click

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 12

  • @Carberra
    @Carberra  Рік тому +2

    Just wanted to note something I forgot to mention in the video: if you want to set a help message for any arguments or options, you can pass `help="message"`! Wasn't worth re-recording the whole thing for, but thought I'd mention it (:

  • @awesomegamer31
    @awesomegamer31 10 місяців тому

    This is a great video, thank you. I think I will definitely use this over argparse

  • @RuslanKovtun
    @RuslanKovtun Рік тому +1

    I had terrible time with click's context: invoking subcommands. Click promises to handle arguments validation but doesn't do so for subcommand invocation with leads to reimplementation of entire validation logic and question "why would you use click in this case?". Since than I'm using argparse every single time, because you should type just a bit more but it is way more maintainable code.

  • @eduferreyraok
    @eduferreyraok Місяць тому

    Now i know how to create a command line utility jaja

  • @auroragb
    @auroragb Рік тому

    Really missing comparison to the built in argparse library and why use click over argparse

  • @willemvdk4886
    @willemvdk4886 Рік тому

    Seems like a great library! Very handy. I don't like the decorator stacking, though. It tickles my OCD, probably. One decorator is fine, two is pushing it, three or more is just foul.

  • @birdbeakbeardneck3617
    @birdbeakbeardneck3617 Рік тому +1

    wow, i wasted many hours, thx for the tool👌👌

    • @Carberra
      @Carberra  Рік тому

      Yeah I tried to do some crazy stuff with argparse once and just using click is so much easier lmao

  • @someabsolutelyrandomstuff9440

    🤔🤔🤔