Skip to content

Commit 2043357

Browse files
committed
Add a note back in that shouldn't have been deleted and try to update it for 3.0.0
1 parent c488540 commit 2043357

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/features/argument_processing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def do_speak(self, opts):
6161
self.poutput(arg)
6262
```
6363

64+
!!! note
65+
66+
`cmd2` sets the `prog` variable in the argument parser based on the name of the method it is decorating. This will override anything you specify in `prog` variable when creating the argument parser.
67+
68+
As of the 3.0.0 release, `cmd2` now sets the `prog` later than it did previously. `prog` now gets set when the instance-specific parser deep copy is created. Previously, it was set in the `with_argparser` decorator itself.
69+
6470
## Help Messages
6571

6672
By default, `cmd2` uses the docstring of the command method when a user asks for help on the

0 commit comments

Comments
 (0)