Commit 7796d28
committed
support reading Argparse instances inside classes
So far, shphinxarg only has support for reading/importing Argparse
instances from global variables/attributes within a module. However,
there are use cases where Argparse is used inside classes of a module,
not as a global variable. This is particularly the case for uses
of 'argparse' in the context of CLI / REPL style user interfaces,
such as for example those built using the 'cmd2' module.
This change introduces the ability to specify :func: wit '.' notation
like foo.bar.baz1 parent f60fd4d commit 7796d28
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| 474 | + | |
474 | 475 | | |
475 | | - | |
| 476 | + | |
476 | 477 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
| |||
0 commit comments