Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 2.52 KB

File metadata and controls

38 lines (34 loc) · 2.52 KB

1. Features

The Argparser:

  • parses your script's positional and keyword (option) arguments
  • allows any number of short and long option names for the same option (as aliases)
  • accepts and parses default and choice values
  • performs (basic) type checking
  • emits a deprecation note for your script's legacy arguments
  • gives proper error and warning messages for wrongly set arguments or unset mandatory options, according to a concise definition provided by your script
  • assigns the positional and keyword arguments' values to corresponding variables in your script's scope
  • creates and prints a verbose and customizable help or a brief usage message, as well as a short version message
  • can give localized help, usage, error, and warning messages in any language you define
  • can use parts of an arguments definition shared across multiple scripts
  • can be widely configured to your needs by a large set of environment variables and optional companion files to your script

🡄 Table of contents           2. Installation 🡆