Commits

Moritz Heidkamp committed a1313c5

chicken-build: add long option aliases

Comments (0)

Files changed (1)

chicken-build.scm

 Build Chicken in current directory and install it to $CHICKENS/NAME.
 
 Options:
-  -b  build and use a bootstrap Chicken
-  -d  make a debug build
-  -s  use NAME as PROGRAM_SUFFIX
-  -p  use NAME as PROGRAM_PREFIX
-  -h  show this help"
+  -b, --bootstrap
+    build and use a bootstrap Chicken
+
+  -d, --debug
+    make a debug build
+
+  -s, --suffixed
+    use NAME as PROGRAM_SUFFIX
+
+  -p, --prefixed
+    use NAME as PROGRAM_PREFIX
+
+  -h, --help
+    show this help"
          (pathname-file (program-name))))
 
 (define build-boot-chicken? #f)
 
 (let loop ((args (command-line-arguments)))
   (match args
-    (("-b" rest ...)
+    (((or "-b" "--bootstrap") rest ...)
      (set! build-boot-chicken? #t)
      (loop rest))
-    (("-s" rest ...)
+    (((or "-s" "--suffixed") rest ...)
      (set! suffix-name? #t)
      (loop rest))
-    (("-p" rest ...)
+    (((or "-p" "--prefixed") rest ...)
      (set! prefix-name? #t)
      (loop rest))
-    (("-d" rest ...)
+    (((or "-d" "--debug") rest ...)
      (set! debug-build? #t)
      (loop rest))
-    (("-h" rest ...)
+    (((or "-h" "--help") rest ...)
      (usage)
      (exit))
     ((name)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.