+command_line (GApplication *application,
+ GApplicationCommandLine *cmdline)
+{
+ gchar **argv;
+ gint argc;
+
+ g_application_command_line_get_argc_argv (cmdline, &argc, &argv);
+
+ g_application_command_line_print (cmdline, "%d + %d = %d\n", 40, 2, 42);
+
+ g_assert_cmpint (argc, ==, 3);
+ g_assert_cmpstr (argv[0], ==, "./cmd");
+ g_assert_cmpstr (argv[1], ==, "40 +");
+ g_assert_cmpstr (argv[2], ==, "2");
+ g_assert (argv[3] == NULL);
+ g_print ("cmdline '%s' '%s'\n", argv[1], argv[2]);
+ g_strfreev (argv);
+
+ return 42;
+}
+
+static int