argv_helper.rb 374 B

123456789101112
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. # Unfortunately, Rails clears ARGV when executing commands, so copy it early at startup
  3. # for later usage.
  4. # See also https://github.com/rails/rails/commit/8ec7a2b7aaa31527686b05e0640d125299933782.
  5. module ArgvHelper
  6. ORIGINAL_ARGV = ARGV.dup.freeze
  7. def self.argv
  8. ORIGINAL_ARGV
  9. end
  10. end