"""
import sys, os
-from optparse import OptionParser, make_option
-
+from stgit.argparse import opt
from stgit.commands.common import *
from stgit.utils import *
from stgit.out import *
from stgit import stack, git
-
-help = 'hide a patch in the series'
-usage = """%prog [options] <patch-range>
-
+help = 'Hide a patch in the series'
+usage = ['[options] <patch-range>']
+description = """
Hide a range of unapplied patches so that they are no longer shown in
the plain 'series' command output."""
+options = [
+ opt('-b', '--branch',
+ short = 'Use BRANCH instead of the default branch')]
+
directory = DirectoryHasRepository()
-options = [make_option('-b', '--branch',
- help = 'use BRANCH instead of the default one')]
def func(parser, options, args):
"""Hide a range of patch in the series