Skip to content

Fix page parsing for command line usage#131

Open
xavriley wants to merge 1 commit intodocumentcloud:masterfrom
xavriley:fix_page_params_in_cli
Open

Fix page parsing for command line usage#131
xavriley wants to merge 1 commit intodocumentcloud:masterfrom
xavriley:fix_page_params_in_cli

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