|
|
|
@ -140,11 +140,19 @@ function print_help() |
|
|
|
-o <file>, --output=<file> |
|
|
|
-o <file>, --output=<file> |
|
|
|
File to write formatted output to. If no output is given, or if the file |
|
|
|
File to write formatted output to. If no output is given, or if the file |
|
|
|
is `-`, output is written to stdout. |
|
|
|
is `-`, output is written to stdout. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--version |
|
|
|
|
|
|
|
Print Runic and julia version information. |
|
|
|
""" |
|
|
|
""" |
|
|
|
) |
|
|
|
) |
|
|
|
return |
|
|
|
return |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function print_version() |
|
|
|
|
|
|
|
println(stdout, "runic version $(RUNIC_VERSION), julia version $(VERSION)") |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
function maybe_expand_directory!(outfiles, dir) |
|
|
|
function maybe_expand_directory!(outfiles, dir) |
|
|
|
if !isdir(dir) |
|
|
|
if !isdir(dir) |
|
|
|
# Assumed to be a file, checked when using it |
|
|
|
# Assumed to be a file, checked when using it |
|
|
|
@ -205,6 +213,9 @@ function main(argv) |
|
|
|
elseif x == "--help" |
|
|
|
elseif x == "--help" |
|
|
|
print_help() |
|
|
|
print_help() |
|
|
|
return errno |
|
|
|
return errno |
|
|
|
|
|
|
|
elseif x == "--version" |
|
|
|
|
|
|
|
print_version() |
|
|
|
|
|
|
|
return errno |
|
|
|
elseif x == "-q" || x == "--quiet" |
|
|
|
elseif x == "-q" || x == "--quiet" |
|
|
|
quiet = true |
|
|
|
quiet = true |
|
|
|
elseif x == "-v" || x == "--verbose" |
|
|
|
elseif x == "-v" || x == "--verbose" |
|
|
|
|