Refactoring: move shared options to their own module
[stgit] / stgit / commands / new.py
index c4ee4e1..eb45e1b 100644 (file)
@@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 from optparse import make_option
 
-from stgit import utils
+from stgit import argparse, utils
 from stgit.commands import common
 from stgit.lib import git as gitlib, transaction
 
@@ -37,8 +37,8 @@ If no name is given for the new patch, one is generated from the first
 line of the commit message."""
 
 directory = common.DirectoryHasRepositoryLib()
-options = (utils.make_author_committer_options()
-           + utils.make_message_options() + utils.make_sign_options())
+options = (argparse.author_committer_options()
+           + argparse.message_options() + argparse.sign_options())
 
 def func(parser, options, args):
     """Create a new patch."""