public class MainKt
Modifier and Type | Method and Description |
---|---|
static void |
execute(java.lang.String[] args)
Executes the CLI program
|
static void |
main(java.lang.String[] args)
The main entry point of the program.
Calls the execute method and wraps it in a try/catch block
|
static kotlin.Triple<kotlin.Array[],net.namibsun.papio.cli.RootMode,net.namibsun.papio.cli.ActionMode> |
parseModes(java.lang.String[] args)
Parses the command line arguments for their modes.
Should the parsing encounter an invalid argument combination, a help message is printed and the
program exits.
|
static net.namibsun.papio.lib.db.DbHandler |
prepareDatabase()
Initializes the local .papio directory and database file.
|
public static void main(java.lang.String[] args)
The main entry point of the program. Calls the execute method and wraps it in a try/catch block
args
- : The command line arguments passed to this programpublic static void execute(java.lang.String[] args)
Executes the CLI program
args
- : The command line arguments passed to this programpublic static net.namibsun.papio.lib.db.DbHandler prepareDatabase()
Initializes the local .papio directory and database file.
public static kotlin.Triple<kotlin.Array[],net.namibsun.papio.cli.RootMode,net.namibsun.papio.cli.ActionMode> parseModes(java.lang.String[] args)
Parses the command line arguments for their modes. Should the parsing encounter an invalid argument combination, a help message is printed and the program exits.