summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index 72a8848..dbc3688 100644
--- a/main.c
+++ b/main.c
@@ -38,6 +38,15 @@ int main(int argc, char **argv) {
pg_upgrade();
goto disconnect;
}
+ if(argc == 2 && strcmp(argv[1], "-d") == 0) {
+ pg_dropall();
+ goto disconnect;
+ }
+ if(argc == 2 && strcmp(argv[1], "-c") == 0) {
+ pg_dropall();
+ pg_init();
+ goto disconnect;
+ }
process();