[ostree] ostadmin: Cosmetic change for option defaults



commit 7b977beec81fefac79c14a64c13adc0f0ebf176c
Author: Colin Walters <walters verbum org>
Date:   Thu Aug 23 10:45:59 2012 -0400

    ostadmin: Cosmetic change for option defaults

 src/ostadmin/ot-admin-builtin-deploy.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/ostadmin/ot-admin-builtin-deploy.c b/src/ostadmin/ot-admin-builtin-deploy.c
index cc5cae8..94eadfd 100644
--- a/src/ostadmin/ot-admin-builtin-deploy.c
+++ b/src/ostadmin/ot-admin-builtin-deploy.c
@@ -32,10 +32,10 @@ typedef struct {
 } OtAdminDeploy;
 
 static gboolean opt_no_kernel;
-static char *opt_ostree_dir;
+static char *opt_ostree_dir = "/ostree";
 
 static GOptionEntry options[] = {
-  { "ostree-dir", 0, 0, G_OPTION_ARG_STRING, &opt_ostree_dir, "Path to OSTree root directory", NULL },
+  { "ostree-dir", 0, 0, G_OPTION_ARG_STRING, &opt_ostree_dir, "Path to OSTree root directory (default: /ostree)", NULL },
   { "no-kernel", 0, 0, G_OPTION_ARG_NONE, &opt_no_kernel, "Don't update kernel related config (initramfs, bootloader)", NULL },
   { NULL }
 };
@@ -146,9 +146,6 @@ ot_admin_builtin_deploy (int argc, char **argv, GError **error)
   const char *revision = NULL;
   __attribute__((unused)) GCancellable *cancellable = NULL;
 
-  if (!opt_ostree_dir)
-    opt_ostree_dir = "/ostree";
-
   memset (self, 0, sizeof (*self));
 
   context = g_option_context_new ("NAME [REVISION] - Check out revision NAME (or REVISION as NAME)");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]