--- a/docs/changelog.rst Fri Jul 31 09:37:17 2009 +0300
+++ b/docs/changelog.rst Fri Jul 31 09:50:26 2009 +0300
@@ -3,7 +3,8 @@
0.9.4
~~~~~
-Ability to hide subcommands from help listing.
+ - Ability to hide subcommands from help listing.
+ - Append program name to subcommand usage.
0.9.3
~~~~~
--- a/docs/overview.rst Fri Jul 31 09:37:17 2009 +0300
+++ b/docs/overview.rst Fri Jul 31 09:50:26 2009 +0300
@@ -160,7 +160,7 @@
strings, wrapped to length of 70 characters and looks like that::
> ./test.py help complex
- complex: [-p] [--exit value] ...
+ test.py complex: [-p] [--exit value] ...
That's more complex command indented to do something
--- a/finaloption.py Fri Jul 31 09:37:17 2009 +0300
+++ b/finaloption.py Fri Jul 31 09:50:26 2009 +0300
@@ -174,7 +174,8 @@
return helplist()
aliases, (cmd, options, usage) = findcmd(name, cmdtable)
- return help_cmd(cmd, replace_name(usage, aliases[0]),
+ return help_cmd(cmd,
+ replace_name(usage, sysname() + ' ' + aliases[0]),
options + globalopts)
return inner