aboutsummaryrefslogtreecommitdiff
path: root/src/wine.c
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-05-27 23:37:23 +0200
committerJan200101 <sentrycraft123@gmail.com>2021-05-27 23:37:23 +0200
commitdf1df2929646abd77955b80e3ded3574ac005179 (patch)
tree9704901455843d41180a9402ed4c0012a1d67f04 /src/wine.c
parent68c20667ca775a4d4a7d1cfc3c9ec5c30f275084 (diff)
downloadpolecat-df1df2929646abd77955b80e3ded3574ac005179.tar.gz
polecat-df1df2929646abd77955b80e3ded3574ac005179.zip
allow flags to exit prematurely, move defines, add no networking flag
Diffstat (limited to 'src/wine.c')
-rw-r--r--src/wine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wine.c b/src/wine.c
index 3f1e5c4..4db7d4f 100644
--- a/src/wine.c
+++ b/src/wine.c
@@ -25,7 +25,8 @@ static const struct Command wine_commands[] = {
};
static const struct Flag wine_flags[] = {
- { .name = "help", .variant = TWO, .func = wine_help, .description = "show this message"}
+ { .name = "help", .variant = TWO, .returns = 1, .func = wine_help, .description = "show this message"},
+ { .name = "no-net", .variant = TWO, .returns = 0, .func = set_no_net, .description = "run commands without commitment"}
};
COMMAND_GROUP_FUNC(wine)