Skip to content

Commit

Permalink
options: Change 'pcre' as --regex-type instead of 'posix'
Browse files Browse the repository at this point in the history
Closes #256
  • Loading branch information
chfoo committed Mar 23, 2015
1 parent 7079ac2 commit ae42a72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Summary of notable changes.
.. Take advice from http://keepachangelog.com/.
Unreleased
==========

* Fixed: ``--regex-type`` to accept ``pcre`` instead of ``posix``. Regular expressions always use Python's regex library. Posix regex is not supported.


1.0 (2015-03-14)
================

Expand Down
1 change: 1 addition & 0 deletions doc/differences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Missing in Wpull
* ``--no-passive-ftp``
* ``--mirror``
* ``--strict-comments``: No plans for support of this option.
* ``--regex-type=posix``: No plans to support posix regex.
* Features greater than Wget 1.15.


Expand Down
2 changes: 1 addition & 1 deletion wpull/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ def _add_accept_args(self):
group.add_argument(
'--regex-type',
metavar='TYPE',
choices=['posix'],
choices=['pcre'],
help=_('use regex TYPE')
)
group.add_argument(
Expand Down

0 comments on commit ae42a72

Please sign in to comment.