diff --git a/nostril.c b/nostril.c index 0082daf..2d6e5ae 100644 --- a/nostril.c +++ b/nostril.c @@ -85,6 +85,7 @@ void usage() printf(" --tag add a tag\n"); printf(" -e shorthand for --tag e \n"); printf(" -p shorthand for --tag p \n"); + printf(" -t shorthand for --tag t \n"); exit(1); } @@ -474,6 +475,13 @@ static int parse_args(int argc, const char *argv[], struct args *args, struct no fprintf(stderr, "couldn't add p tag"); return 0; } + } else if (!strcmp(arg, "-t")) { + has_added_tags = 1; + arg = *argv++; argc--; + if (!nostr_add_tag(ev, "t", arg)) { + fprintf(stderr, "couldn't add t tag"); + return 0; + } } else if (!strcmp(arg, "--tag")) { has_added_tags = 1; if (args->tags) {