Python Language CLI subcommands with precise help output

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

Different ways to create subcommands like in hg or svn with the exact command line interface and help output as shown in Remarks section.

Parsing Command Line arguments covers broader topic of arguments parsing.

Remarks

Different ways to create subcommands like in hg or svn with the command line interface shown in the help message:

usage: sub <command>

commands:

  status -  show status
  list   -  print list


Got any Python Language Question?