Prefer positional arguments in CLI commands

This commit is contained in:
silverpill 2022-08-11 23:12:07 +00:00
parent dc7d533c42
commit d2444826fc
2 changed files with 5 additions and 11 deletions

View file

@ -164,25 +164,25 @@ mitractl list-invite-codes
Delete profile:
```
mitractl delete-profile -i 55a3005f-f293-4168-ab70-6ab09a879679
mitractl delete-profile 55a3005f-f293-4168-ab70-6ab09a879679
```
Delete post:
```
mitractl delete-post -i 55a3005f-f293-4168-ab70-6ab09a879679
mitractl delete-post 55a3005f-f293-4168-ab70-6ab09a879679
```
Remove remote posts and media older than 30 days:
```
mitractl delete-extraneous-posts -d 30
mitractl delete-extraneous-posts 30
```
Delete attachments that doesn't belong to any post:
```
mitractl delete-unused-attachments -d 5
mitractl delete-unused-attachments 5
```
Generate ethereum address:
@ -194,7 +194,7 @@ mitractl generate-ethereum-address
Update blockchain synchronization starting block:
```shell
mitractl update-current-block -n 2000000
mitractl update-current-block 2000000
```
## License

View file

@ -82,7 +82,6 @@ struct ListInviteCodes;
/// Re-fetch actor profile by actor ID
#[derive(Parser)]
struct RefetchActor {
#[clap(short)]
id: String,
}
@ -103,21 +102,18 @@ impl RefetchActor {
/// Delete profile
#[derive(Parser)]
struct DeleteProfile {
#[clap(short)]
id: Uuid,
}
/// Delete post
#[derive(Parser)]
struct DeletePost {
#[clap(short)]
id: Uuid,
}
/// Delete old remote posts
#[derive(Parser)]
struct DeleteExtraneousPosts {
#[clap(short)]
days: i64,
#[clap(long)]
@ -127,7 +123,6 @@ struct DeleteExtraneousPosts {
/// Delete attachments that don't belong to any post
#[derive(Parser)]
struct DeleteUnusedAttachments {
#[clap(short)]
days: i64,
}
@ -161,7 +156,6 @@ impl DeleteOrphanedFiles {
/// Update blockchain synchronization starting block
#[derive(Parser)]
struct UpdateCurrentBlock {
#[clap(short)]
number: u64,
#[clap(long)]