removed command line interface
This commit is contained in:
@@ -4,47 +4,8 @@ include("TupleMisc.jl")
|
|||||||
include("plot.jl")
|
include("plot.jl")
|
||||||
using XXhash
|
using XXhash
|
||||||
using Serialization
|
using Serialization
|
||||||
using ArgParse
|
|
||||||
using Combinatorics
|
using Combinatorics
|
||||||
|
|
||||||
function main()
|
|
||||||
s = ArgParseSettings()
|
|
||||||
@add_arg_table s begin
|
|
||||||
"-g"
|
|
||||||
help = "generator"
|
|
||||||
arg_type = Int
|
|
||||||
"-c"
|
|
||||||
help = "Polycube count"
|
|
||||||
action = :store_true
|
|
||||||
"-l"
|
|
||||||
help = "Polycube list"
|
|
||||||
action = :store_true
|
|
||||||
"-p"
|
|
||||||
help = "plot n_cubes i_Polycube"
|
|
||||||
nargs = '+'
|
|
||||||
arg_type = Int
|
|
||||||
end
|
|
||||||
|
|
||||||
parsed_args = parse_args(s)
|
|
||||||
|
|
||||||
generate = get(parsed_args, "g", nothing)
|
|
||||||
if generate !== nothing && generate > 0
|
|
||||||
scanForPolycubes(generate)
|
|
||||||
end
|
|
||||||
if get(parsed_args, "c", false)
|
|
||||||
countPolycubes()
|
|
||||||
end
|
|
||||||
if get(parsed_args, "l", false)
|
|
||||||
listPolycubes()
|
|
||||||
end
|
|
||||||
plot = get(parsed_args, "p", nothing)
|
|
||||||
if length(plot) == 1
|
|
||||||
plotPolycubes(plot)
|
|
||||||
elseif length(plot) == 2
|
|
||||||
plotPolycube(plot)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function options()
|
function options()
|
||||||
println("scanForPolycubes(Int::n): scans for Polycubes of size <=n")
|
println("scanForPolycubes(Int::n): scans for Polycubes of size <=n")
|
||||||
println("countPolycubes(): opens Polycube storage and displays the amount of Polycubes for the generated sizes")
|
println("countPolycubes(): opens Polycube storage and displays the amount of Polycubes for the generated sizes")
|
||||||
|
|||||||
Reference in New Issue
Block a user