diff options
author | Guido van Rossum <guido@python.org> | 1995-04-28 19:24:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-04-28 19:24:50 (GMT) |
commit | 2d2a60e29bf8e8131ffe4b2e1e52d0ed28ce953a (patch) | |
tree | d3a43a51de6e4c7ec4ff495b0334aabb53c6a4ae /Demo | |
parent | 177df7d7c9c0b1f08542fc78f4fb52e72eb83738 (diff) | |
download | cpython-2d2a60e29bf8e8131ffe4b2e1e52d0ed28ce953a.zip cpython-2d2a60e29bf8e8131ffe4b2e1e52d0ed28ce953a.tar.gz cpython-2d2a60e29bf8e8131ffe4b2e1e52d0ed28ce953a.tar.bz2 |
only diff differing files
add PostUsageMessage
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/pdist/rcvs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Demo/pdist/rcvs.py b/Demo/pdist/rcvs.py index 4620256..d9d1c55 100755 --- a/Demo/pdist/rcvs.py +++ b/Demo/pdist/rcvs.py @@ -113,6 +113,8 @@ class MyFile(File): self.file def diff(self, opts = []): + if self.lsum == self.rsum: + return import tempfile flags = '' for o, a in opts: @@ -188,7 +190,9 @@ class rcvs(CommandFrameWork): GlobalFlags = 'd:h:p:qv' UsageMessage = \ - "usage: rcvs [-d directory] [-h host] [-p port] [-q] [-v] subcommand arg ..." +"usage: rcvs [-d directory] [-h host] [-p port] [-q] [-v] [subcommand arg ...]" + PostUsageMessage = \ + "If no subcommand is given, the status of all files is listed" def __init__(self): """Constructor.""" |