@@ -1022,14 +1022,14 @@ local function main(args)
10221022 show_selector = true ,
10231023 }
10241024 local positionals = argparse .processArgsGetopt (args , {
1025- { ' a' , ' artifact' , handler = function (optarg ) opts .item_id = argparse .nonnegativeInt (optarg , ' artifact' ) end },
1026- { ' e' , ' entity' , handler = function (optarg ) opts .entity_id = argparse .nonnegativeInt (optarg , ' entity' ) end },
1027- { ' f' , ' histfig' , handler = function (optarg ) opts .histfig_id = argparse .nonnegativeInt (optarg , ' histfig' ) end },
1025+ { ' a' , ' artifact' , hasArg = true , handler = function (optarg ) opts .item_id = argparse .nonnegativeInt (optarg , ' artifact' ) end },
1026+ { ' e' , ' entity' , hasArg = true , handler = function (optarg ) opts .entity_id = argparse .nonnegativeInt (optarg , ' entity' ) end },
1027+ { ' f' , ' histfig' , hasArg = true , handler = function (optarg ) opts .histfig_id = argparse .nonnegativeInt (optarg , ' histfig' ) end },
10281028 { ' h' , ' help' , handler = function () opts .help = true end },
1029- { ' l' , ' location' , handler = function (optarg ) opts .location_id = argparse .nonnegativeInt (optarg , ' location' ) end },
1030- { ' q' , ' squad' , handler = function (optarg ) opts .squad_id = argparse .nonnegativeInt (optarg , ' squad' ) end },
1031- { ' s' , ' site' , handler = function (optarg ) opts .site_id = argparse .nonnegativeInt (optarg , ' site' ) end },
1032- { ' u' , ' unit' , handler = function (optarg ) opts .unit_id = argparse .nonnegativeInt (optarg , ' unit' ) end },
1029+ { ' l' , ' location' , hasArg = true , handler = function (optarg ) opts .location_id = argparse .nonnegativeInt (optarg , ' location' ) end },
1030+ { ' q' , ' squad' , hasArg = true , handler = function (optarg ) opts .squad_id = argparse .nonnegativeInt (optarg , ' squad' ) end },
1031+ { ' s' , ' site' , hasArg = true , handler = function (optarg ) opts .site_id = argparse .nonnegativeInt (optarg , ' site' ) end },
1032+ { ' u' , ' unit' , hasArg = true , handler = function (optarg ) opts .unit_id = argparse .nonnegativeInt (optarg , ' unit' ) end },
10331033 { ' w' , ' world' , handler = function () opts .world = true end },
10341034 { ' ' , ' no-target-selector' , handler = function () opts .show_selector = false end },
10351035 })
0 commit comments