Skip to content

Commit 5b48dd7

Browse files
committed
use array literals
1 parent 03fc0cc commit 5b48dd7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Kotlin WebExtensions API Declarations Generator
1+
# Kotlin WebExtensions API Declarations
22

33
This project contains Kotlin JS declarations for the Firefox WebExtensions API generated from the offical schema files.
44

src/main/kotlin/de/rakhman/webextensions/main.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ fun main(args: Array<String>) {
5454
}
5555

5656
class Args {
57-
@Parameter(names = arrayOf("-s", "--source"))
57+
@Parameter(names = ["-s", "--source"])
5858
var source: String = SourceArg.Github.name
5959

60-
@Parameter(names = arrayOf("--apiToken"), description = "Optional Github OAuth 2 API token. Not using a token can lead to hitting the quota limit quickly.")
60+
@Parameter(names = ["--apiToken"], description = "Optional Github OAuth 2 API token. Not using a token can lead to hitting the quota limit quickly.")
6161
var apiToken: String? = null
6262

63-
@Parameter(names = arrayOf("--filePath"), description = "Optional path to schema files. Default ist 'schemas'")
63+
@Parameter(names = ["--filePath"], description = "Optional path to schema files. Default ist 'schemas'")
6464
var filePath: String? = "schemas"
6565

66-
@Parameter(names = arrayOf("-o", "--outputPath"), description = "Optional path for output. Default is 'declarations/src/main/kotlin'")
66+
@Parameter(names = ["-o", "--outputPath"], description = "Optional path for output. Default is 'declarations/src/main/kotlin'")
6767
var outputPath: String? = "declarations/src/main/kotlin"
6868
}
6969

0 commit comments

Comments
 (0)