code: def location_cmd(name, accepts_force=False):
      
      COMMANDS_TAKING_LOCATIONS.add(name)
  
      def decorator(func):
          @_cmd(name)
          def command_wrapper(editor, variables):
              location = variables.get('location')
              force = bool(variables['force'])
  
              if force and not accepts_force:
                  editor.show_message('No ! allowed')
              elif accepts_force:
                  func(editor, location, force=force)
              else:
                  func(editor, location)
          return func
      return decorator
docs: Decorator that registers a command that takes a location as (optional)
      parameter.