original_docstring: Add options specific to this module to an existing optparse options parser.
docstring: Add options specific to this module to an existing optparse options parser.
docstring_tokens: Add options specific to this module to an existing optparse options parser .
code: def add_module_options(parser):
      '''Add options specific to this module to an existing optparse options parser.'''
  
      group = optparse.OptionGroup(parser, "Packing Options")
  
      group.add_option("--pack-dir", metavar = "DIR", default = None,
          help = "Directory where the distribution to package is currently installed. "
          + "Default is to take the root of the Git repository in which this script lies.")
  
      group.add_option("--deb", action = "store_true", default = False,
          help = "Build a .deb package.")
  
      group.add_option("--tgz", "-T", action = "store_true", default = False,
          help = "Create a .tar.gz archive.")
  
      group.add_option("--stgz", action = "store_true", default = False,
          help = "Create a source .tar.gz archive.")
  
      group.add_option("--arch", metavar = "ARCH", default = None,
          help = "Specify the package architecture manually. By default, the current machine architecture is used.")
  
      group.add_option("--distro", metavar = "DISTRO", default = None,
          help = "Specify the target distribution manually. By default, the current running Linux distribution is used.")
  
      group.add_option("--package-version", dest = "version", metavar = "VERSION",
          help = "Specify version for packages.")
  
      group.add_option("--append-date", "--date", action = "store_true", default = False,
          help = "Automatically append current date & time to version string.")
  
      group.add_option("--publish", action = "store_true", default = False,
          help = "Publish the produced packages on the server.")
  
      group.add_option("--publish-only", action = "append", metavar = "FILE", default = [],
          help = "Publish only a given file (.deb, tgz, stgz or even whatever for testing) without rebuilding it. Several files are allowed by using this option several times.")
  
      group.add_option("--retry-publish", action = "store_true",  default = False,
          help = "Retry to publish only files (.deb and/or tgz and/or stgz) from the local directory without rebuilding them. Be sure from what is in your local directory! To be used with p4a_pack and not with p4a_coffee")
  
      group.add_option("--release", dest = "development", action = "store_false", default = True,
          help = "When publishing, put the packages in release directories instead of development ones.")
  
      group.add_option("--install-prefix", metavar = "DIR", default = None,
          help = "Specify the installation prefix. Default is /usr/local/par4all.")
  
      group.add_option("--keep-temp", "-k", action = "store_true", default = False,
          help = "Do not remove temporary directories after script execution.")
  
      group.add_option("--pack-output-dir", metavar = "DIR", default = None,
          help = "Directory where package files will be put (locally). Any existing package with the same name (exact same revision) "
          + "will be overwritten without prompt. Defaults to current working directory: " + os.getcwd())
  
      parser.add_option_group(group)
code_tokens: def add_module_options ( parser ) : group = optparse . OptionGroup ( parser , "Packing Options" ) group . add_option ( "--pack-dir" , metavar = "DIR" , default = None , help = "Directory where the distribution to package is currently installed. " + "Default is to take the root of the Git repository in which this script lies." ) group . add_option ( "--deb" , action = "store_true" , default = False , help = "Build a .deb package." ) group . add_option ( "--tgz" , "-T" , action = "store_true" , default = False , help = "Create a .tar.gz archive." ) group . add_option ( "--stgz" , action = "store_true" , default = False , help = "Create a source .tar.gz archive." ) group . add_option ( "--arch" , metavar = "ARCH" , default = None , help = "Specify the package architecture manually. By default, the current machine architecture is used." ) group . add_option ( "--distro" , metavar = "DISTRO" , default = None , help = "Specify the target distribution manually. By default, the current running Linux distribution is used." ) group . add_option ( "--package-version" , dest = "version" , metavar = "VERSION" , help = "Specify version for packages." ) group . add_option ( "--append-date" , "--date" , action = "store_true" , default = False , help = "Automatically append current date & time to version string." ) group . add_option ( "--publish" , action = "store_true" , default = False , help = "Publish the produced packages on the server." ) group . add_option ( "--publish-only" , action = "append" , metavar = "FILE" , default = [ ] , help = "Publish only a given file (.deb, tgz, stgz or even whatever for testing) without rebuilding it. Several files are allowed by using this option several times." ) group . add_option ( "--retry-publish" , action = "store_true" , default = False , help = "Retry to publish only files (.deb and/or tgz and/or stgz) from the local directory without rebuilding them. Be sure from what is in your local directory! To be used with p4a_pack and not with p4a_coffee" ) group . add_option ( "--release" , dest = "development" , action = "store_false" , default = True , help = "When publishing, put the packages in release directories instead of development ones." ) group . add_option ( "--install-prefix" , metavar = "DIR" , default = None , help = "Specify the installation prefix. Default is /usr/local/par4all." ) group . add_option ( "--keep-temp" , "-k" , action = "store_true" , default = False , help = "Do not remove temporary directories after script execution." ) group . add_option ( "--pack-output-dir" , metavar = "DIR" , default = None , help = "Directory where package files will be put (locally). Any existing package with the same name (exact same revision) " + "will be overwritten without prompt. Defaults to current working directory: " + os . getcwd ( ) ) parser . add_option_group ( group )
short_docstring: Add options specific to this module to an existing optparse options parser.
short_docstring_tokens: Add options specific to this module to an existing optparse options parser .
comment: '''Add options specific to this module to an existing optparse options parser.'''