* morituri/rip/main.py:
* morituri/common/musicbrainzngs.py: * morituri/common/program.py: * morituri/rip/cd.py: Add -R option to rip to record API results for debugging.
This commit is contained in:
@@ -69,6 +69,9 @@ You can get help on subcommands by using the -h option to the subcommand.
|
||||
log.debug("morituri", "This is morituri version %s (%s)",
|
||||
configure.version, configure.revision)
|
||||
|
||||
self.parser.add_option('-R', '--record',
|
||||
action="store_true", dest="record",
|
||||
help="record API requests for playback")
|
||||
self.parser.add_option('-v', '--version',
|
||||
action="store_true", dest="version",
|
||||
help="show version information")
|
||||
@@ -79,6 +82,8 @@ You can get help on subcommands by using the -h option to the subcommand.
|
||||
print "rip %s" % configure.version
|
||||
sys.exit(0)
|
||||
|
||||
self.record = options.record
|
||||
|
||||
def parse(self, argv):
|
||||
log.debug("morituri", "rip %s" % " ".join(argv))
|
||||
logcommand.LogCommand.parse(self, argv)
|
||||
|
||||
Reference in New Issue
Block a user