Skip to content

Commit 3b6e508

Browse files
committed
Reformat help text
1 parent 4b6a0d9 commit 3b6e508

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

bpb/src/main.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,23 @@ fn gpg_sign_arg(arg: &str) -> bool {
100100
}
101101

102102
fn print_help_message() -> Result<(), Error> {
103-
println!("bpb: boats's personal barricade\n");
104-
println!("A program for signing git commits.\n");
103+
println!("bpb: boats's personal barricade");
104+
println!();
105+
println!("A program for signing git commits.");
106+
println!();
105107
println!("Arguments:");
106108
println!(" init <userid>: Generate a keypair and store in the keychain.");
107109
println!(" import <key>: Import a key from the command line.");
108110
println!(" print: Print public key in OpenPGP format.");
109111
println!(" fingerprint: Print the fingerprint of the public key.");
110112
println!(" key-id: Print the key ID of the public key.");
111-
println!(" sign-hex <hex>: Sign a hex string and print the signature and public key.\n");
113+
println!(" sign-hex <hex>: Sign a hex string and print the signature and public key.");
112114
println!(" timestamp: Print the timestamp of the current key.");
113-
println!(" restore [-f] <key> <userid> [timestamp]: Restore a key from a 64-character private key.\n The -f flag will override any existing key.\n The timestamp is optional and will be used to generate the same public key format.");
115+
println!(" restore [-f] <key> <userid> [timestamp]:");
116+
println!(" Restore a key from a 64-character private key.");
117+
println!(" [timestamp] can be used to generate the same public key format.");
118+
println!(" Use the -f flag to forcibly override any existing key.");
119+
println!();
114120
println!("See https://github.com/pkgxdev/bpb for more information.");
115121
Ok(())
116122
}

0 commit comments

Comments
 (0)