scripts: Factorize option parsing sans 'GUIX_BUILD_OPTIONS'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 27 Oct 2017 20:28:00 +0000 (13:28 -0700)
committerLudovic Courtès <ludo@gnu.org>
Sat, 28 Oct 2017 07:45:53 +0000 (09:45 +0200)
commita1ff7e1d8dfb86ae1817d4e0db4ddeebd2083e83
tree37ae378568444d592f17174bfc90533c55d18a38
parented1f071e98126ceb992faf5f22762f24d36ba9ff
scripts: Factorize option parsing sans 'GUIX_BUILD_OPTIONS'.

* guix/scripts.scm (parse-command-line): Add #:build-options? parameter
and honor it.
* guix/scripts/challenge.scm (guix-challenge): Use 'parse-command-line'
with #:build-options? #f instead of 'args-fold*'.
* guix/scripts/gc.scm (guix-gc): Likewise.
* guix/scripts/graph.scm (guix-graph): Likewise.
* guix/scripts/hash.scm (guix-hash): Likewise.
* guix/scripts/lint.scm (guix-lint): Likewise.
* guix/scripts/refresh.scm (guix-refresh): Likewise.
* guix/scripts/size.scm (guix-size): Likewise.
* guix/scripts/weather.scm (guix-weather): Likewise.
guix/scripts.scm
guix/scripts/challenge.scm
guix/scripts/gc.scm
guix/scripts/graph.scm
guix/scripts/hash.scm
guix/scripts/lint.scm
guix/scripts/refresh.scm
guix/scripts/size.scm
guix/scripts/weather.scm