[Zope3-checkins] CVS: Zope3/src/zope/fssync - command.py:1.3
Fred L. Drake, Jr.
fred at zope.com
Tue Aug 12 13:58:30 EDT 2003
Update of /cvs-repository/Zope3/src/zope/fssync
In directory cvs.zope.org:/tmp/cvs-serv25739
Modified Files:
command.py
Log Message:
make "h" and "?" aliases for whatever "help" command has been
registered; these are the same aliases as used by Subversion
=== Zope3/src/zope/fssync/command.py 1.2 => 1.3 ===
--- Zope3/src/zope/fssync/command.py:1.2 Tue Aug 12 12:51:45 2003
+++ Zope3/src/zope/fssync/command.py Tue Aug 12 12:58:24 2003
@@ -59,6 +59,10 @@
def realize(self, args=None):
if "help" not in self.command_table:
self.addCommand("help", self.help)
+ short, long, func = self.command_table["help"]
+ for alias in ("h", "?"):
+ if alias not in self.command_table:
+ self.addCommand(alias, func, short, long)
if args is None:
args = sys.argv[1:]
self.global_options, args = self.getopt("global",
More information about the Zope3-Checkins
mailing list