Skip to content

Commit 1e8d442

Browse files
authored
Merge pull request #135 from SmithChart/more-debugbathosts
ffbs-debugbathosts: Improve command line wording and allow minimizer to minimize script
2 parents 39a38b6 + a6dbaa7 commit 1e8d442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ffbs-debugbathosts/files/usr/sbin/update-bat-hosts ffbs-debugbathosts/luasrc/usr/sbin/update-bat-hosts

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ local function parse_and_print_mac_addresses(json_data, gateway_only)
7979
end
8080

8181
if #arg == 0 then
82-
print("Useage: update-bat-hosts <nodes.json url> [--gw]")
82+
print("Useage: update-bat-hosts <nodes.json url> [--gw-only]")
8383
os.exit(1)
8484
end
8585

8686
local url = arg[1]
8787

8888
local gateway_only = false
89-
if #arg == 2 and arg[2] == '--gw' then
89+
if #arg == 2 and arg[2] == '--gw-only' then
9090
gateway_only = true
9191
end
9292

0 commit comments

Comments
 (0)