@@ -13,7 +13,8 @@ add additional capabilities.
1313Features
1414~~~~~~~~
1515
16- * Modular Command Sets - Commands can be broken into separate modules rather than in one god class holding all commands.
16+ * Modular Command Sets - Commands can be broken into separate modules rather than in one god class holding all
17+ commands.
1718* Automatic Command Discovery - In your application, merely defining and importing a CommandSet is sufficient for
1819 cmd2 to discover and load your command. No manual registration is necessary.
1920* Dynamically Loadable/Unloadable Commands - Command functions and CommandSets can both be loaded and unloaded
@@ -211,10 +212,11 @@ Description
211212~~~~~~~~~~~
212213Using the `with_argparse ` decorator, it is possible to define subcommands for your command. This has a tendency to
213214either drive your interface into an object-centric interface. For example, imagine you have a tool that manages your
214- media collection and you want to manage movies or shows. An object-centric approach would push you to have base commands
215- such as `movies ` and `shows ` which each have subcommands `add `, `edit `, `list `, `delete `. If you wanted to present an
216- action-centric command set, so that `add `, `edit `, `list `, and `delete ` are the base commands, you'd have to organize
217- your code around these similar actions rather than organizing your code around similar objects being managed.
215+ media collection and you want to manage movies or shows. An object-centric approach would push you to have base
216+ commands such as `movies ` and `shows ` which each have subcommands `add `, `edit `, `list `, `delete `. If you wanted to
217+ present an action-centric command set, so that `add `, `edit `, `list `, and `delete ` are the base commands, you'd have
218+ to organize your code around these similar actions rather than organizing your code around similar objects being
219+ managed.
218220
219221Subcommand injection allows you to inject subcommands into a base command to present an interface that is sensible to
220222a user while still organizing your code in whatever structure make more logical sense to the developer.
0 commit comments