help = 'add files or directories to the repository'
-usage = """%prog <files/dirs...>"""
+usage = """%prog [options] <files/dirs...>
+
+Add the files or directories passed as arguments to the
+repository. When a directory name is given, all the files and
+subdirectories are recursively added."""
options = []
if len(args) < 1:
parser.error('incorrect number of arguments')
+ if not crt_series.get_current():
+ raise CmdException, 'No patches applied'
+
git.add(args)