Skip to content

Commit

Permalink
Avoid argparse/autocommand, as they can't pass through args that look…
Browse files Browse the repository at this point in the history
… like options.
  • Loading branch information
jaraco committed Jun 22, 2023
1 parent 156c2ac commit 2a2ffca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v7.22.1
=======

* Fixed bug in argument handling of ``towncrier``.

v7.22.0
=======

Expand Down
6 changes: 4 additions & 2 deletions jaraco/develop/towncrier.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import subprocess
import sys

import autocommand
from jaraco.vcs import repo
from jaraco.versioning import semver

Expand Down Expand Up @@ -67,7 +66,6 @@ def get_version():
return repo().get_next_version(release_kind())


@autocommand.autocommand(__name__)
def run(command, *args):
cmd = (
sys.executable,
Expand All @@ -78,3 +76,7 @@ def run(command, *args):
semver(get_version()),
) + args
subprocess.check_call(cmd)


if __name__ == '__main__':
run(*sys.argv[1:])

0 comments on commit 2a2ffca

Please sign in to comment.