From 189da9d1414381d0e971b16b51835261f9fcd34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Thu, 11 Dec 2025 12:56:01 +0100 Subject: [PATCH] fix: uppercase NIP identifiers in command parser --- src/types/man.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types/man.ts b/src/types/man.ts index 904c92a..df76d2a 100644 --- a/src/types/man.ts +++ b/src/types/man.ts @@ -31,18 +31,19 @@ export const manPages: Record = { options: [ { flag: "", - description: "The NIP number to view (e.g., 01, 02, 19)", + description: "The NIP number to view (e.g., 01, 02, 19, B0)", }, ], examples: [ "nip 01 View the basic protocol specification", "nip 19 View the bech32 encoding specification", + "nip b0 View the NIP-B0 specification", ], seeAlso: ["feed", "kind"], appId: "nip", category: "Documentation", argParser: (args: string[]) => { - const num = args[0] || "01"; + const num = (args[0] || "01").toUpperCase(); // Pad single digit numbers with leading zero const paddedNum = num.length === 1 ? `0${num}` : num; return { number: paddedNum };