Catmandu icon indicating copy to clipboard operation
Catmandu copied to clipboard

Allow passing of primary options as arguments in command line

Open nichtich opened this issue 10 years ago • 0 comments

Why can't I just type

catmandu import JSON test.json to DBI dbi:SQLite:test.sqlite

The primary and most common option to Catmandu::Importer is file and the primary, mandatory option to Catmandu::Store is data_source, so the call above should be expanded to

catmandu import JSON --file test.json to DBI --data_source dbi:SQLite:test.sqlite

Typical usage should be simple and non-typical usage should be possible.

nichtich avatar Dec 17 '13 09:12 nichtich