Reusing post-data and post-file is not intuitive enough when we support more options through --method. Say, someone wished to use --method=PUT. In that case using --post-data or --post-file is counter intuitive. Hence the need to unify them all under one heading.
On Mon, Mar 11, 2013 at 6:46 PM, Giuseppe Scrivano <[email protected]>wrote: > Darshit Shah <[email protected]> writes: > > > please don't add these. I don't think we would like to add a new > > pair > > of --FOO-data, --FOO-file for any method we will implement. As > > already > > suggested by Hrvoje, just add --body-data and --body-file that are > > synonyms for --post-data and --post-file; we can't drop these for > > backward compatibility. > > > > No. I won't. As suggested by Hrvoje, I plan on implementing as: > > --method=POST:<data...> > > --method=POST,file:<filename...> > > what is the advantage over reusing --post-data and --post-file? > > Giuseppe > -- Thanking You, Darshit Shah Research Lead, Code Innovation Kill Code Phobia. B.E.(Hons.) Mechanical Engineering, '14. BITS-Pilani
