This file is indexed.

/usr/share/common-lisp/source/command-line-arguments/argv.lisp is in cl-command-line-arguments 20151218-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;                                                                  ;;;
;;; Free Software available under an MIT-style license. See LICENSE  ;;;
;;;                                                                  ;;;
;;; Copyright (c) 2009 ITA Software, Inc.  All rights reserved.      ;;;
;;;                                                                  ;;;
;;; Original author: Francois-Rene Rideau                            ;;;
;;;                                                                  ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

#+xcvb (module (:depends-on ("pkgdcl")))

(in-package :command-line-arguments)

(declaim (ftype (function (t t) (values t t)) process-command-line-options))

(defun get-command-line-arguments ()
  uiop:*command-line-arguments*)

(defun compute-and-process-command-line-options (specification)
  (process-command-line-options specification (get-command-line-arguments)))

(defun invoke-command-line-handler (function options arguments &key
                                    (positional-arity 0) (rest-arity nil) name)
  (let ((l (length arguments)))
    (unless (>= l positional-arity)
      (error "~@[~A: ~] Too few arguments. Expected~@[ at least~] ~A, got ~A ~S"
             name rest-arity positional-arity l arguments))
    (when (and (> l positional-arity) (not rest-arity))
      (error "~@[~A: ~] Too many arguments. Expected only ~A, got ~A ~S"
             name positional-arity l arguments))
    (let ((positional-arguments (subseq arguments 0 positional-arity))
          (rest-arguments (when rest-arity (subseq arguments positional-arity))))
      (apply function (append positional-arguments
                              (etypecase rest-arity
                                (null nil)
                                ((eql t) (list rest-arguments))
                                (keyword (list rest-arity rest-arguments)))
                              options)))))

(defun handle-command-line (specification function
                            &key (positional-arity 0) (rest-arity nil) name
                            (command-line (get-command-line-arguments)))
  (multiple-value-bind (options arguments)
      (process-command-line-options specification command-line)
    (invoke-command-line-handler function options arguments
                                 :name name
                                 :positional-arity positional-arity
                                 :rest-arity rest-arity)))