[epiphany/mcatanzaro/cli: 7/7] main: properly hide the secret --delete-application flag



commit e11d882b48f1c25d8263ce0e48442bb70f88ef01
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 5764d0135..242777eab 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]