Skip to content
  • Python Tip #120 (of 365):

    Uncategorized python dailypythontip
    2
    0 Votes
    2 Posts
    1 Views
    treyhunner@mastodon.socialT
    Also consider adding a description to describe your script and help to each argument:parser = argparse.ArgumentParser( description="Compute emoji-hash for input text/file",)parser.add_argument( "path", type=Path, metavar="FILENAME", help="Input file to emoji-hash",)Developer experience DOES matter but don't forget the users.You're welcome to leave these customizations to the finishing touches of your Python CLI, but don't forget them!🧵 (2/2)