From 32173feb9f85639247003e0a67642d80dd5b5f47 Mon Sep 17 00:00:00 2001 From: Chris de Graaf Date: Mon, 21 Aug 2017 11:22:57 -0500 Subject: [PATCH] Add io keyword to license functions --- src/license.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/license.jl b/src/license.jl index 43b66b0..9838e3b 100644 --- a/src/license.jl +++ b/src/license.jl @@ -1,10 +1,10 @@ """ - show_license([license::AbstractString]) -> Void + show_license([license::AbstractString]; io=STDOUT) -> Void Show all available license names, or prints the text of `license`. """ -show_license() = println(join(["$k: $v" for (k, v) in LICENSES], "\n")) -show_license(license::AbstractString) = println(read_license(license)) +show_license(; io=STDOUT) = println(io, join(["$k: $v" for (k, v) in LICENSES], "\n")) +show_license(license::AbstractString; io=STDOUT) = println(io, read_license(license)) """ read_license(licence::AbstractString) -> String