Benoit Sida 4 år sedan
förälder
incheckning
df55191ffe
1 ändrade filer med 14 tillägg och 12 borttagningar
  1. 14
    12
      blih.js

+ 14
- 12
blih.js Visa fil

80
 		this.usage_message =`
80
 		this.usage_message =`
81
 		Usage: ${process.argv[1]} [options] repository command ...
81
 		Usage: ${process.argv[1]} [options] repository command ...
82
 		
82
 		
83
-		Commands :
84
-		    create repo\t\t\t-- Create a repository named "repo"
85
-		    info repo\t\t\t-- Get the repository metadata
86
-		    getacl repo\t\t\t-- Get the acls set for the repository
87
-		    list\t\t\t-- List the repositories created
88
-		    setacl repo user [acl]\t-- Set (or remove) an acl for "user" on "repo"
83
+		Commands:
84
+		    create repo\t\tCreate a repository named "repo"
85
+		    info repo\t\t\tGet the repository metadata
86
+		    getacl repo\t\tGet the acls set for the repository
87
+		    list\t\t\tList the repositories created
88
+		    setacl repo user [acl]\tSet (or remove) an acl for "user" on "repo"
89
 		    \t\t\t\tACL format:
89
 		    \t\t\t\tACL format:
90
 		    \t\t\t\t\tr for read
90
 		    \t\t\t\t\tr for read
91
 		    \t\t\t\t\tw for write
91
 		    \t\t\t\t\tw for write
92
-		    \t\t\t\t\ta for admin`;
93
-		this.usage_message = this.usage_message.substr(3).replace(/\n\t\t/g, '\n');
92
+		    \t\t\t\t\ta for admin
93
+		`;
94
+		this.usage_message = '\n  ' + this.usage_message.substr(3).replace(/\n\t\t/g, '\n  ');
94
 	}
95
 	}
95
 
96
 
96
 	create(params) {
97
 	create(params) {
161
 		Usage: ${process.argv[1]} [options] sshkey command ...
162
 		Usage: ${process.argv[1]} [options] sshkey command ...
162
 		
163
 		
163
 		Commands :
164
 		Commands :
164
-		    upload [file]\t\t\t-- Upload a new ssh-key
165
-		    list\t\t\t\t-- List the ssh-keys
166
-		    delete [sshkey]\t\t\t-- Delete the sshkey with comment [sshkey]`;
167
-		this.usage_message = this.usage_message.substr(3).replace(/\n\t\t/g, '\n');
165
+		    upload [file]\t\t\tUpload a new ssh-key
166
+		    list\t\t\t\tList the ssh-keys
167
+		    delete [sshkey]\t\t\tDelete the sshkey with comment [sshkey]
168
+		`;
169
+		this.usage_message = '\n  ' + this.usage_message.substr(3).replace(/\n\t\t/g, '\n  ');
168
 	}
170
 	}
169
 
171
 
170
 	list() {
172
 	list() {