Skip to content
Snippets Groups Projects

update doorscan to work with current synchronet pre/post xtrn modules

Merged Kayz requested to merge mlong/doorscan into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Deucе
    • Author Developer

      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.)

    • Maintainer

      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.

    • Please register or sign in to reply
  • Maybe the question from @Deuce is "Why check the length of argv[0]"?

  • Kayz added 1 commit

    added 1 commit

    Compare with previous version

  • Author Developer

    modified

  • closed

  • Kayz reopened

    reopened

  • Deucе
  • Deucе
  • Deucе
  • Kayz added 1 commit

    added 1 commit

    Compare with previous version

  • Deucе approved this merge request

    approved this merge request

  • Maintainer

    One thing that's not clear... the title is "update doorscan to work with current synchronet" but there's no indication of how it previously didn't work. A message to that effect in the commit message (wherever that is) would be helpful.

  • Author Developer

    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
  • Author Developer

    gitlab might use the title of the merge request when you merge it, i'll try that

  • Kayz changed title from update doorscan to work with current synchronet to update doorscan to work with current synchronet pre/post xtrn modules

    changed title from update doorscan to work with current synchronet to update doorscan to work with current synchronet pre/post xtrn modules

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading