Skip to content

Commit cbbdf6b

Browse files
chore: add uninstall command to help
1 parent 8ef15f3 commit cbbdf6b

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

src/main/kotlin/app/utils/Options.kt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,31 @@ import com.beust.jcommander.Parameter
88
class Options {
99
// Sourcerer account username.
1010
@Parameter(names = arrayOf("-u", "--username"),
11-
description = "Sourcerer account username",
12-
order = 0)
11+
description = "Sourcerer account username",
12+
order = 0)
1313
var username: String = ""
1414

1515
// Sourcerer account password.
1616
@Parameter(names = arrayOf("-p", "--password"),
17-
description = "Sourcerer account password",
18-
order = 1)
17+
description = "Sourcerer account password",
18+
order = 1)
1919
var password: String = ""
2020

2121
// List options and commands.
2222
@Parameter(names = arrayOf("-h", "--help"),
23-
description = "List options and commands",
24-
order = 2)
23+
description = "List options and commands",
24+
order = 2)
2525
var help: Boolean = false
2626

2727
// Cleanup configs and run setup again.
2828
@Parameter(names = arrayOf("--setup"),
29-
description = "Cleanup configs and run setup again",
30-
order = 3)
29+
description = "Cleanup configs and run setup again",
30+
order = 3)
3131
var setup: Boolean = false
32+
33+
// Uninstall. Runs by install script, added to display info in help.
34+
@Parameter(names = arrayOf("--uninstall"),
35+
description = "Remove Sourcerer App",
36+
order = 4)
37+
var uninstall: Boolean = false
3238
}

0 commit comments

Comments
 (0)