update doorscan to work with current synchronet pre/post xtrn modules
Merge request reports
Activity
added 1 commit
- e7ee31de - Update lbshell.js - don't even need doorscan in here as it can be...
assigned to @Deuce and unassigned @rswindell
- Resolved by Kayz
- Resolved by Kayz
i don't remember now why i did that, but there are only ever 2 params args we need (0 and 1), will never need more than that. first one is action, second one is external code. not that this would happen, but it does avoid issues if they were to pass the same argument multiple times (either because they didn't know what they were doing, or they actually had a door with an external code "scan", etc.)
There's a lot of why there... why make command-line parsing more limited and harder to extend, why check the truthiness of argv[0] and arv[1] rather than checking if they exist, why hard-code argument numbers when it previously wasn't, etc.
Previously, argv of ["run", "scan"] never executed the doScan() function as i was incremented when run was parsed.
Maybe the question from @Deuce is "Why check the length of
argv[0]
"?- Resolved by Kayz
- Resolved by Kayz
- Resolved by Kayz
can you even ammend a commit message after its been pushed? rob or you might be able to when he merges it. basically what i was trying to say is it is updated to work with the pre/post xtrn modules
Edited by Kayz