help = 'print the name of the top patch'
-usage = '%prog'
+usage = """%prog [options]
-options = []
+Print the name of the current (topmost) patch."""
+
+options = [make_option('-b', '--branch',
+ help = 'use BRANCH instead of the default one')]
def func(parser, options, args):
name = crt_series.get_current()
if name:
- print name
+ out.stdout(name)
else:
raise CmdException, 'No patches applied'