Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add the flag to the CLI
  • Loading branch information
mrezzamoradi committed Feb 22, 2022
commit 2a1bcf32083057965cd3f8cf8cc476c4a57a9628
5 changes: 4 additions & 1 deletion slugify/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def parse_args(argv):
help="Activate case sensitivity")
parser.add_argument("--replacements", nargs='+',
help="""Additional replacement rules e.g. "|->or", "%%->percent".""")
parser.add_argument("--allow-unicode", action='store_true', default=False,
help="Allow unicode characters")

args = parser.parse_args(argv[1:])

Expand Down Expand Up @@ -73,7 +75,8 @@ def slugify_params(args):
separator=args.separator,
stopwords=args.stopwords,
lowercase=args.lowercase,
replacements=args.replacements
replacements=args.replacements,
allow_unicode=args.allow_unicode
)


Expand Down