openSUSE / py2pack

Generate distribution packages from PyPI
Apache License 2.0
69 stars 40 forks source link

--template and --filename options not reported by --help command #118

Closed nkadel closed 5 years ago

nkadel commented 5 years ago

The supported options "--template" and "--filename" are not reported by the the "py2pack --help" command.

toabctl commented 5 years ago

Because these are parameters for the subcommand py2pack generate. Try:

$ py2pack generate -h
usage: py2pack generate [-h] [--source-url SOURCE_URL]
                        [-t {fedora.spec,mageia.spec,opensuse.dsc,opensuse-legacy.spec,opensuse.spec}]
                        [-f FILENAME] [-r]
                        name [version]

positional arguments:
  name                  package name
  version               package version (optional)

optional arguments:
  -h, --help            show this help message and exit
  --source-url SOURCE_URL
                        source url
  -t {fedora.spec,mageia.spec,opensuse.dsc,opensuse-legacy.spec,opensuse.spec}, --template {fedora.spec,mageia.spec,opensuse.dsc,opensuse-legacy.spec,opensuse.spec}
                        file template
  -f FILENAME, --filename FILENAME
                        spec filename (optional)
  -r, --run             DEPRECATED and noop. will be removed in future
                        releases!