* get-branches: Sub string for invalid operation correctly.

This commit is contained in:
Jonathan Patrick Davies 2008-08-14 10:50:04 +01:00
parent a26bfee8bb
commit 28d84fa1a8

View File

@ -69,9 +69,9 @@ def main():
operation_type = str(options.operation).lower()
# Got an argument, check if it is valid.
if operation_type.lower() not in ("branch", "checkout"):
optParser.error("Invalid operation '%s' for '-o' flag.") % \
operation_type
if operation_type not in ("branch", "checkout"):
optParser.error("Invalid operation '%s' for '-o' flag." % \
operation_type)
# Fetch our current directory to return to later.