Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix page parsing for command line usage#131

Open
xavriley wants to merge 1 commit intodocumentcloud:masterdocumentcloud/docsplit:masterfrom
xavriley:fix_page_params_in_clixavriley/docsplit:fix_page_params_in_cliCopy head branch name to clipboard
Open

Fix page parsing for command line usage#131
xavriley wants to merge 1 commit intodocumentcloud:masterdocumentcloud/docsplit:masterfrom
xavriley:fix_page_params_in_clixavriley/docsplit:fix_page_params_in_cliCopy head branch name to clipboard

Conversation

@xavriley
Copy link

@xavriley xavriley commented May 3, 2015

This fixes the --page argument to work as described in the
documentation when using docsplit from the command line. Users can now
specify page ranges 5-15, comma separated lists 1,5,7, single pages
3 or combinations of these e.g. 3-5,7,8,12-15

The options parser was previously passing through a String where an
Array was expected internally. This was not an issue when using the gem directly
from Ruby, only when using the command line.

This includes a command_line unit test to exercise the new page number parser.

This fixes the `--page` argument to work as described in the
documentation when using docsplit from the command line. Users can now
specify page ranges `5-15`, comma separated lists `1,5,7`, single pages
`3` or combinations of these e.g. `3-5,7,8,12-15`

The options parser was previously passing through a String where an
Array was expected internally. This was not an issue when using the gem directly
from Ruby, only when using the command line.

This includes a command_line unit test to exercise the new page number parser.
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.