From 105369bdd15c2067b3ee6bdd6a737733a34c38ef Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Wed, 29 Jul 2020 17:59:47 -0400 Subject: Suggested PR Fixes. sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator. --- examples/modular_subcommands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/modular_subcommands.py') diff --git a/examples/modular_subcommands.py b/examples/modular_subcommands.py index e4d2fe45..1ac951ae 100644 --- a/examples/modular_subcommands.py +++ b/examples/modular_subcommands.py @@ -1,14 +1,14 @@ #!/usr/bin/env python3 # coding=utf-8 -"""A simple example demonstracting modular sub-command loading through CommandSets +"""A simple example demonstracting modular subcommand loading through CommandSets -In this example, there are loadable CommandSets defined. Each CommandSet has 1 sub-command defined that will be +In this example, there are loadable CommandSets defined. Each CommandSet has 1 subcommand defined that will be attached to the 'cut' command. The cut command is implemented with the `do_cut` function that has been tagged as an argparse command. The `load` and `unload` command will load and unload the CommandSets. The available top level commands as well as -sub-commands to the `cut` command will change depending on which CommandSets are loaded. +subcommands to the `cut` command will change depending on which CommandSets are loaded. """ import argparse import cmd2 -- cgit v1.2.1