Skip to content

Commit

Permalink
Fix few nits with depreaction of --reconfigurable
Browse files Browse the repository at this point in the history
This removes the --reconfigurable flag in the bench command entirely
as it's internal facing. It also improves the message in the
deprecation warning in the run command.
  • Loading branch information
Jessica Tallon committed Aug 15, 2017
1 parent 176906c commit 8d855fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/program/lwaftr/bench/bench.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ function parse_args(args)
function handlers.b(arg) opts.bench_file = arg end
function handlers.y() opts.hydra = true end
function handlers.h() show_usage(0) end
function handlers.reconfigurable()
io.stderr:write("Warning: --reconfigurable flag has been deprecated.\n")
end
args = lib.dogetopt(args, handlers, "n:hyb:D:", {
help="h", hydra="y", ["bench-file"]="b", duration="D", name="n", cpu=1,
reconfigurable = 0 })
help="h", hydra="y", ["bench-file"]="b", duration="D", name="n", cpu=1})
if #args ~= 3 then show_usage(1) end
return opts, scheduling, unpack(args)
end
Expand Down
3 changes: 2 additions & 1 deletion src/program/lwaftr/run/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ function parse_args(args)
end
end
function handlers.reconfigurable()
io.stderr:write("Warning: --reconfigurable flag has been deprecated.\n")
io.stderr:write("Warning: the --reconfigurable flag has been deprecated")
io.stderr:write(" as the lwaftr is now always reconfigurable.\n")
end
function handlers.h() show_usage(0) end
lib.dogetopt(args, handlers, "b:c:vD:yhir:n:",
Expand Down

0 comments on commit 8d855fd

Please sign in to comment.