CLI subcommands with precise help output

Download python eBook

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

Related Examples

Stats

38 Contributors: 3
Wednesday, March 8, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook