[epiphany/mcatanzaro/cli: 8/8] main: properly hide the secret --delete-application flag
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/cli: 8/8] main: properly hide the secret --delete-application flag
- Date: Thu, 3 Jan 2019 22:49:41 +0000 (UTC)
commit 7c22edbf0e41f7419721a5dbf3be783fc09ca0ea
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Jan 3 16:34:57 2019 -0600
main: properly hide the secret --delete-application flag
Oops, C enum flags are not very typesafe! Not at all!
src/ephy-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ephy-main.c b/src/ephy-main.c
index dd6d0cf37..0b55ad19c 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -125,7 +125,7 @@ static const GOptionEntry option_entries[] =
"", N_("URL …") },
{ "version", 0, G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_HIDDEN,
G_OPTION_ARG_CALLBACK, option_version_cb, NULL, NULL },
- { "delete-application", 0, 0, G_OPTION_ARG_STRING | G_OPTION_FLAG_HIDDEN,
+ { "delete-application", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING,
&application_to_delete, NULL, NULL },
{ NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]