From cc5a2c39e8a2c5fbdaca70c92b39829c88596aab Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 18 May 2011 23:57:25 +0000 Subject: [PATCH] * morituri/rip/main.py: More debug info: args, version, revision. --- ChangeLog | 5 +++++ morituri/rip/main.py | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index edb096d..106eb11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-19 Thomas Vander Stichele + + * morituri/rip/main.py: + More debug info: args, version, revision. + 2011-05-19 Thomas Vander Stichele * morituri/configure/configure.py (svn:keywords): diff --git a/morituri/rip/main.py b/morituri/rip/main.py index 413fbe0..a31ee55 100644 --- a/morituri/rip/main.py +++ b/morituri/rip/main.py @@ -44,7 +44,8 @@ You can get help on subcommands by using the -h option to the subcommand. # FIXME: is this the right place ? log.init() from morituri.configure import configure - log.debug("morituri", "This is morituri version %s" % configure.version) + log.debug("morituri", "This is morituri version %s (%s)", + configure.version, configure.revision) self.parser.add_option('-v', '--version', action="store_true", dest="version", @@ -55,3 +56,7 @@ You can get help on subcommands by using the -h option to the subcommand. from morituri.configure import configure print "rip %s" % configure.version sys.exit(0) + + def parse(self, argv): + log.debug("morituri", "rip %s" % " ".join(argv)) + logcommand.LogCommand.parse(self, argv)