Print the help page.
.It d | \-display
Display all of our egos.
+.It q | \-quiet
+Be quiet, in particular outputs only the public key when listing egos.
.It v | \-verbose
Be verbose, in particular outputs the public key of freshly created egos.
.It m | \-monitor
*/
static unsigned int verbose;
+/**
+ * Was "quiet" specified?
+ */
+static int quiet;
+
/**
* -C option
*/
GNUNET_IDENTITY_ego_get_public_key (ego, &pk);
s = GNUNET_CRYPTO_ecdsa_public_key_to_string (&pk);
if ((monitor) || (NULL != identifier))
- fprintf (stdout, "%s - %s\n", identifier, s);
+ {
+ if (quiet)
+ fprintf (stdout, "%s\n", s);
+ else
+ fprintf (stdout, "%s - %s\n", identifier, s);
+ }
GNUNET_free (s);
}
"display",
gettext_noop ("display all egos"),
&list),
+ GNUNET_GETOPT_option_flag ('q',
+ "quiet",
+ gettext_noop ("reduce output"),
+ &quiet),
GNUNET_GETOPT_option_string (
'e',
"ego",