]> Cypherpunks repositories - gostls13.git/commitdiff
gc, gopack: add some missing flags to the docs.
authorDavid Symonds <dsymonds@golang.org>
Sat, 5 Mar 2011 04:21:26 +0000 (20:21 -0800)
committerDavid Symonds <dsymonds@golang.org>
Sat, 5 Mar 2011 04:21:26 +0000 (20:21 -0800)
R=rsc, r
CC=golang-dev
https://golang.org/cl/4260051

src/cmd/gc/doc.go
src/cmd/gopack/ar.c
src/cmd/gopack/doc.go

index 21e1b103b03a2a56f2588fa6ce506b55aa47ba76..3fe7fafddb68ba8a4b9582da57386f59a15f49db 100644 (file)
@@ -43,6 +43,8 @@ Flags:
                disable optimization
        -S
                write assembly language text to standard output
+       -u
+               disallow importing packages not marked as safe
        -V
                print the compiler version
 
index 702f104a6856d32259e4dc0fd30c147b2d165736..a7e2c41afdc9742fc3038b1af0a213cd43e26e9b 100644 (file)
@@ -109,7 +109,7 @@ typedef struct Hashchain
 
                /* constants and flags */
 char   *man =          "mrxtdpq";
-char   *opt =          "uvnbailoS";
+char   *opt =          "uvnbailogS";
 char   artemp[] =      "/tmp/vXXXXX";
 char   movtemp[] =     "/tmp/v1XXXXX";
 char   tailtemp[] =    "/tmp/v2XXXXX";
index 74c272fd218a2f25fd2a5c0b94b4b9ffb38d996e..08711e72e179af223447690c955dfe477629d638 100644 (file)
@@ -12,10 +12,12 @@ It adds a special Go-specific section __.PKGDEF that collects all the
 Go type information from the files in the archive; that section is
 used by the compiler when importing the package during compilation.
 
-Usage: gopack [uvnbailo][mrxtdpq] archive files ...
+Usage: gopack [uvnbailogS][mrxtdpq] archive files ...
 
 The new option 'g' causes gopack to maintain the __.PKGDEF section
 as files are added to the archive.
 
+The new option 'S' forces gopack to mark the archive as safe.
+
 */
 package documentation