Fossil SCM
Fill in more help for fossil user whoami command.
Commit
aef4a2c023d2f1d9119ee1f852879880ec61b42296395ac9d2673da315fccc08
Parent
a06df610c99bdf5…
1 file changed
+5
-1
+5
-1
| --- src/user.c | ||
| +++ src/user.c | ||
| @@ -351,16 +351,20 @@ | ||
| 351 | 351 | ** to exist in the database. |
| 352 | 352 | ** |
| 353 | 353 | ** > fossil user password USERNAME ?PASSWORD? |
| 354 | 354 | ** |
| 355 | 355 | ** Change the web access password for a user. |
| 356 | +** | |
| 357 | +** > fossil user whoami | |
| 358 | +** | |
| 359 | +** Detect what fossil thinks your username should be. | |
| 356 | 360 | */ |
| 357 | 361 | void user_cmd(void){ |
| 358 | 362 | int n; |
| 359 | 363 | db_find_and_open_repository(0, 0); |
| 360 | 364 | if( g.argc<3 ){ |
| 361 | - usage("capabilities|contact|default|list|new|password ..."); | |
| 365 | + usage("capabilities|contact|default|list|new|password|whoami ..."); | |
| 362 | 366 | } |
| 363 | 367 | n = strlen(g.argv[2]); |
| 364 | 368 | if( n>=2 && strncmp(g.argv[2],"new",n)==0 ){ |
| 365 | 369 | Blob passwd, login, caps, contact; |
| 366 | 370 | char *zPw; |
| 367 | 371 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -351,16 +351,20 @@ | |
| 351 | ** to exist in the database. |
| 352 | ** |
| 353 | ** > fossil user password USERNAME ?PASSWORD? |
| 354 | ** |
| 355 | ** Change the web access password for a user. |
| 356 | */ |
| 357 | void user_cmd(void){ |
| 358 | int n; |
| 359 | db_find_and_open_repository(0, 0); |
| 360 | if( g.argc<3 ){ |
| 361 | usage("capabilities|contact|default|list|new|password ..."); |
| 362 | } |
| 363 | n = strlen(g.argv[2]); |
| 364 | if( n>=2 && strncmp(g.argv[2],"new",n)==0 ){ |
| 365 | Blob passwd, login, caps, contact; |
| 366 | char *zPw; |
| 367 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -351,16 +351,20 @@ | |
| 351 | ** to exist in the database. |
| 352 | ** |
| 353 | ** > fossil user password USERNAME ?PASSWORD? |
| 354 | ** |
| 355 | ** Change the web access password for a user. |
| 356 | ** |
| 357 | ** > fossil user whoami |
| 358 | ** |
| 359 | ** Detect what fossil thinks your username should be. |
| 360 | */ |
| 361 | void user_cmd(void){ |
| 362 | int n; |
| 363 | db_find_and_open_repository(0, 0); |
| 364 | if( g.argc<3 ){ |
| 365 | usage("capabilities|contact|default|list|new|password|whoami ..."); |
| 366 | } |
| 367 | n = strlen(g.argv[2]); |
| 368 | if( n>=2 && strncmp(g.argv[2],"new",n)==0 ){ |
| 369 | Blob passwd, login, caps, contact; |
| 370 | char *zPw; |
| 371 |