about summary refs log tree commit diff stats
path: root/html/082scenario_screen.cc.html
Commit message (Expand)AuthorAgeFilesLines
* 4814Kartik Agaram2018-12-011-63/+66
* 4709Kartik Agaram2018-10-171-13/+13
* 4539Kartik Agaram2018-09-071-7/+7
* 4447Kartik Agaram2018-07-271-270/+292
* 4239Kartik Agaram2018-05-081-9/+9
* 4228Kartik K. Agaram2018-03-151-1/+1
* 4199Kartik K. Agaram2018-01-251-132/+131
* 4161Kartik K. Agaram2017-12-151-20/+20
* 4155Kartik K. Agaram2017-12-071-24/+24
* 4134 - 'input' = 'ingredient'Kartik K. Agaram2017-12-031-22/+22
* 4109Kartik K. Agaram2017-11-051-1/+1
* 4102Kartik K. Agaram2017-11-011-16/+16
* 3990Kartik K. Agaram2017-09-031-2/+2
* 3971Kartik K. Agaram2017-08-191-1/+1
* 3951Kartik K. Agaram2017-06-241-144/+148
* 3927Kartik K. Agaram2017-06-191-142/+135
* 3900Kartik K. Agaram2017-06-021-2/+2
* 3897 - various updates to documentationKartik K. Agaram2017-05-291-27/+27
* 3877Kartik K. Agaram2017-05-261-2/+2
* 3764 - better colors for cross-linksKartik K. Agaram2017-03-081-4/+5
* 3761Kartik K. Agaram2017-03-071-139/+140
* 3750Kartik K. Agaram2017-03-021-15/+15
* 3749Kartik K. Agaram2017-03-021-15/+15
* 3746Kartik K. Agaram2017-02-071-5/+5
* 3716Kartik K. Agaram2016-12-261-0/+2
* 3713 - cross-link calls with definitions in htmlKartik K. Agaram2016-12-261-59/+59
* 3710Kartik K. Agaram2016-12-261-415/+415
* 3709 - line numbers in htmlKartik K. Agaram2016-12-261-419/+443
* 3667Kartik K. Agaram2016-11-111-1/+1
* 3561Kartik K. Agaram2016-10-221-2/+2
* 3544Kartik K. Agaram2016-10-221-1/+1
* 3543Kartik K. Agaram2016-10-221-3/+3
* 3524Kartik K. Agaram2016-10-201-9/+9
* 3431Kartik K. Agaram2016-09-301-7/+9
* 3430Kartik K. Agaram2016-09-281-19/+19
* 3395Kartik K. Agaram2016-09-171-19/+19
* 3315Kartik K. Agaram2016-09-101-2/+2
* 3266Kartik K. Agaram2016-08-271-9/+51
* 3235Kartik K. Agaram2016-08-201-4/+5
* 3227Kartik K. Agaram2016-08-181-3/+3
* 3219Kartik K. Agaram2016-08-171-0/+5
* 3158Kartik K. Agaram2016-07-271-8/+9
* 3117Kartik K. Agaram2016-07-201-0/+3
* 3102Kartik K. Agaram2016-07-051-3/+1
* 2996Kartik K. Agaram2016-05-211-0/+1
* 2866Kartik K. Agaram2016-04-251-11/+11
* 2812Kartik K. Agaram2016-03-271-40/+49
* 2745Kartik K. Agaram2016-03-091-1/+1
* 2744Kartik K. Agaram2016-03-091-3/+3
* 2743Kartik K. Agaram2016-03-091-110/+102
'#n62'>62 63 64
65
66
67
68
69
70
  

         
                                                           
  
















                                                                       

                 

                   

                      

                                    
                          
 

                           

                                   


                                                                                             
                                                                                                                       

                
 

                            
 

                                                              

                                                                 
                                       
                 
     
 

                                   

                                                            
                                                                                   




                                                                                                   

     
                               


             
/*
 * main.c
 *
 * Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
 *
 * This file is part of Profanity.
 *
 * Profanity is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Profanity is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Profanity.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include <glib.h>

#include "config.h"

#include "profanity.h"

static gboolean disable_tls = FALSE;
static gboolean version = FALSE;
static char *log = "INFO";

int
main(int argc, char **argv)
{
    static GOptionEntry entries[] =
    {
        { "version", 'v', 0, G_OPTION_ARG_NONE, &version, "Show version information", NULL },
        { "disable-tls", 'd', 0, G_OPTION_ARG_NONE, &disable_tls, "Disable TLS", NULL },
        { "log",'l', 0, G_OPTION_ARG_STRING, &log, "Set logging levels, DEBUG, INFO (default), WARN, ERROR", "LEVEL" },
        { NULL }
    };

    GError *error = NULL;
    GOptionContext *context;

    context = g_option_context_new(NULL);
    g_option_context_add_main_entries(context, entries, NULL);
    if (!g_option_context_parse(context, &argc, &argv, &error)) {
        g_print("%s\n", error->message);
        g_option_context_free(context);
        return 1;
    }

    g_option_context_free(context);

    if (version == TRUE) {
        g_print("Profanity, version %s\n", PACKAGE_VERSION);
        g_print("Copyright (C) 2012, 2013 James Booth <%s>.\n", PACKAGE_BUGREPORT);
        g_print("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
        g_print("\n");
        g_print("This is free software; you are free to change and redistribute it.\n");
        g_print("There is NO WARRANTY, to the extent permitted by law.\n");
        return 0;
    }

    prof_run(disable_tls, log);

    return 0;
}