Pkg.jl: Allow commas

Created on 4 Dec 2018  路  6Comments  路  Source: JuliaLang/Pkg.jl

Is it only me that finds it annoying that it's

using Dates, BenchmarkTools, LinearAlgebra

but in pkg REPL mode it's

add Dates BenchmarkTools LinearAlgebra

It would be really convenient to also allow

add Dates, BenchmarkTools, LinearAlgebra

Not only would it be somewhat consistent but also nice for copy-paste. Same for rm.

REPL good first issue help wanted

Most helpful comment

Right, thought we'd come to one. I'd say let's just allow commas. Where's the harm? 馃榾

All 6 comments

Yes, this came up once before, we decided against, but I've thought better of it since copy-and-paste would be very handy this way. The only argument against I can think of is that I also want to auto-prompt the user to install packages that are usinged and imported, which would make this far less necessary. But why not both?

we decided against

I don't think we came to a conclusion, if you are talking about #589

Right, thought we'd come to one. I'd say let's just allow commas. Where's the harm? 馃榾

A couple of students ran into this once again in a class I'm teaching. Unfortunately I won't be able to make a PR myself any time soon. Maybe this should be a "good first issue"?

Is this as simple as a replace(args, ","=>" ") somewhere in https://github.com/JuliaLang/Pkg.jl/blob/master/src/Operations.jl ?

Maybe, why don鈥檛 you try?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GregPlowman picture GregPlowman  路  3Comments

MaWo2 picture MaWo2  路  4Comments

omus picture omus  路  4Comments

KristofferC picture KristofferC  路  4Comments

DilumAluthge picture DilumAluthge  路  3Comments