Handle unknown option on rip cd info. Fixes #30.

This commit is contained in:
Thomas Vander Stichele
2013-07-03 20:15:32 +02:00
parent 32000bd0d0
commit d9e2175ddc

View File

@@ -90,7 +90,8 @@ class _CD(logcommand.LogCommand):
if cddbmd:
self.stdout.write('FreeDB identifies disc as %s\n' % cddbmd)
if not self.options.unknown:
# also used by rip cd info
if not self.options.get('unknown:', False):
self.program.ejectDevice(self.device)
return -1