summaryrefslogtreecommitdiff
path: root/examples/modular_subcommands.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-07-29 17:59:47 -0400
committeranselor <anselor@gmail.com>2020-08-04 13:38:08 -0400
commit105369bdd15c2067b3ee6bdd6a737733a34c38ef (patch)
tree6358e7923d35d491998d263a93fdbdd8f1e8c256 /examples/modular_subcommands.py
parent8d0b162cf5712c26947f1e0bbc2b1021cb71e366 (diff)
downloadcmd2-git-105369bdd15c2067b3ee6bdd6a737733a34c38ef.tar.gz
Suggested PR Fixes.
sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator.
Diffstat (limited to 'examples/modular_subcommands.py')
-rw-r--r--examples/modular_subcommands.py6
1 files changed, 3 insertions, 3 deletions
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