Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI mode #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add CLI mode #51

wants to merge 2 commits into from

Conversation

njourdane
Copy link

Add ability to execute slugify through command-line.

Usage

Typical

$slugify -s 'some string'
some-string

Via stdin

$echo 'some string' | slugify
some-string

With options

$slugify -s 'Some String' -l
some-string
$slugify --string 'Some String' --lower --replace '_'
some_string

Help

$slugify -h                    
Usage: slugify [options] -s 'string'
       echo 'string' | slugify [options]

Options:
  -s, --string            the string to slugify
  -r, --replacement char  defines words separator
  -R, --remove regex      remove characters
  -l, --lower             result in lower case
  -h, --help              display this help and exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant