dav/main.c

changeset 380
8a0c727aa409
parent 376
222997d48ae1
child 382
1ce7211a1021
equal deleted inserted replaced
379:cdaf5a3d3a50 380:8a0c727aa409
195 } 195 }
196 return NULL; 196 return NULL;
197 } 197 }
198 198
199 void print_usage(char *cmd) { 199 void print_usage(char *cmd) {
200 fprintf(stderr, "Usage: %s command [options] arguments...\n\n", cmd);
201
202 fprintf(stderr, "Commands:\n");
200 for(int i=0;;i++) { 203 for(int i=0;;i++) {
201 char *str = cmdusageinfo[i]; 204 char *str = cmdusageinfo[i];
202 if(!str) { 205 if(!str) {
203 break; 206 break;
204 } 207 }
224 fprintf(stderr, " -l print resources in long list format\n"); 227 fprintf(stderr, " -l print resources in long list format\n");
225 fprintf(stderr, " -t print content type\n"); 228 fprintf(stderr, " -t print content type\n");
226 fprintf(stderr, " -d order by last modified date\n"); 229 fprintf(stderr, " -d order by last modified date\n");
227 fprintf(stderr, " -e show extended flags\n"); 230 fprintf(stderr, " -e show extended flags\n");
228 fprintf(stderr, " -O override resources\n"); 231 fprintf(stderr, " -O override resources\n");
229 fprintf(stderr, " -A tar import/export\n");
230 fprintf(stderr, " -L <lock> specificy lock token\n"); 232 fprintf(stderr, " -L <lock> specificy lock token\n");
231 fprintf(stderr, " -T <sec> timeout in seconds\n"); 233 fprintf(stderr, " -T <sec> timeout in seconds\n");
232 fprintf(stderr, " -n <uri> specify namespace uri\n"); 234 fprintf(stderr, " -n <uri> specify namespace uri\n");
233 fprintf(stderr, " -x xml property content\n"); 235 fprintf(stderr, " -x xml property content\n");
234 fprintf(stderr, " -N disable authentication prompt (all commands)\n"); 236 fprintf(stderr, " -N disable authentication prompt (all commands)\n");

mercurial