-
Notifications
You must be signed in to change notification settings - Fork 104
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
ERROR: "thor csv" was called with arguments ["-i,", "-m,"] Usage: "thor datashift:import:csv -i, --input=INPUT -m, --model=MODEL" #65
Comments
what is what ? some docs - the readme is quite extensive and there is a large wiki - https://github.com/autotelik/datashift_spree/wiki syntax as specified by Usage : |
the parent project : https://github.com/autotelik/datashift is up to date and with good readme, and probably does what you need |
Thanks What was the idea behind building a spree specific version ? Why does datashift ask for --i and --m arguments to go with -i and -m ? |
to support non trivial processing like nested child taxons. if you really need that you can see in the code how I used to over write datashift ... there is a branch to migrate Spree loader specifics to new DataShift API - but its WIP .... https://github.com/autotelik/datashift_spree/blob/feature/update_api_latest_ds_and_spree/lib/loaders/spree/product_populator.rb --i won't work. its -i or --input
$ thor help datashift:import:csv Options: import CSV file for specified active record model |
thor datashift:import:csv -i, --input=products_export.csv -m, --model=Product ERROR: "thor csv" was called with arguments ["-i,", "-m,"] thor datashift:import:csv -i products_export.csv |
it tells you the issue No value provided for required options '--model' |
I think maybe reading around the basics of calling a rake or a thor task would help you. thor is nothing to do with me, it provides the task calling framework and defines how options are passed you need to tell the task which DB model the csv file relates to thor datashift:import:csv -i products_export.csv -m Product |
Well you previously said "Usage: "thor datashift:import:csv -i, --input=INPUT -m, --model=MODEL" |
I supplied you the thor help ...that's how the thor gem and most linux type command line apps decides to print out its help. |
What is this? No docs? What's the right syntax please?
The text was updated successfully, but these errors were encountered: