* morituri/rip/main.py:

More debug info: args, version, revision.
This commit is contained in:
Thomas Vander Stichele
2011-05-18 23:57:25 +00:00
parent f3696f22d1
commit cc5a2c39e8
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2011-05-19 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/rip/main.py:
More debug info: args, version, revision.
2011-05-19 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/configure/configure.py (svn:keywords):

View File

@@ -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)