aboutsummaryrefslogtreecommitdiff
path: root/src/main.nim
diff options
context:
space:
mode:
authorkitsunyan2018-03-20 10:05:39 +0000
committerkitsunyan2018-03-20 10:05:39 +0000
commitcfb1b0786f9cf585726e1a5f1a9a1788d829c2bf (patch)
tree5d49a3672966b2675e2b76759151fab95db30785 /src/main.nim
parentc5962c53cd8d5b7f57ecd6ca68198f0e600f9fb4 (diff)
Add missing help string for "--keyserver" option
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim7
1 files changed, 6 insertions, 1 deletions
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 <name>", tr"use name as keyserver to receive keys from")
printHelp("noaur", tr"disable all AUR operations")
else:
discard