From cfb1b0786f9cf585726e1a5f1a9a1788d829c2bf Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Tue, 20 Mar 2018 13:05:39 +0300 Subject: Add missing help string for "--keyserver" option --- src/main.nim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.nim b/src/main.nim index 9e98c30..b5d700b 100644 --- a/src/main.nim +++ b/src/main.nim @@ -160,7 +160,11 @@ proc handleUpgrade(args: seq[Argument], config: Config): int = proc handleHelp(operation: OperationType) = proc printHelp(command: string, text: string) = - echo(' '.repeat(6), "--", command, ' '.repeat(15 - command.len), text) + if command.len > 14: + echo(' '.repeat(6), "--", command) + echo(' '.repeat(23), text) + else: + echo(' '.repeat(6), "--", command, ' '.repeat(15 - command.len), text) let operationArgs = operations .filter(o => o.otype == operation) @@ -176,6 +180,7 @@ proc handleHelp(operation: OperationType) = case operation: of OperationType.sync: printHelp("build", tr"build targets from source") + printHelp("keyserver ", tr"use name as keyserver to receive keys from") printHelp("noaur", tr"disable all AUR operations") else: discard -- cgit v1.2.3-70-g09d2