Subversion Repositories svn1

Rev

Rev 177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 213
Line 26... Line 26...
26
*   00.0    6-Nov-92    DDP     Ansified existing code
26
*   00.0    6-Nov-92    DDP     Ansified existing code
27
*   00.0    27/01/95    DDP     Tidies up the program and formatted the file
27
*   00.0    27/01/95    DDP     Tidies up the program and formatted the file
28
*
28
*
29
**************************************************************************/
29
**************************************************************************/
30
#include    <QtGui/QApplication>
30
#include    <QtGui/QApplication>
-
 
31
#include <QMessageBox>
31
 
32
 
32
#include    <time.h>
33
#include    <time.h>
33
#include    "consts.h"
34
#include    "consts.h"
34
#include    "structs.h"
35
#include    "structs.h"
35
#include    "proto.h"
36
#include    "proto.h"
Line 70... Line 71...
70
    QApplication a(argc, argv);
71
    QApplication a(argc, argv);
71
 
72
 
72
    /*
73
    /*
73
    **  Verify command arguments
74
    **  Verify command arguments
74
    */
75
    */
75
    if( argc < 2 )
76
//    if( argc < 2 )
76
        usage();
77
//        usage();
77
 
78
 
78
    /*
79
    /*
79
    **  Walk the user arguments and extract switches and file names
80
    **  Walk the user arguments and extract switches and file names
80
    */
81
    */
81
    while( --argc )
82
    while( --argc )
Line 133... Line 134...
133
 *      
134
 *      
134
 *===========================================================================*/
135
 *===========================================================================*/
135
 
136
 
136
void usage(void)
137
void usage(void)
137
{
138
{
-
 
139
    QMessageBox::question ( 0, "Usage",
-
 
140
                           "mara [options] config_file\n"
-
 
141
                           "Options are:\n"
-
 
142
                           "    No options yet",
-
 
143
                           QMessageBox::Ok
-
 
144
                           );
138
    qDebug( "Usage : mara [options] [configuration_file]\n" );
145
    qWarning( "Usage : mara [options] [configuration_file]\n" );
139
    qDebug( "\n" );
146
    qWarning( "\n" );
140
    qDebug( "Options are:\n" );
147
    qWarning( "Options are:\n" );
141
    qDebug( "   No Options\n" );
148
    qWarning( "   No Options\n" );
142
    exit( 3 );
149
    exit( 3 );
143
}
150
}
144
 
151
 
145
 
152
 
146
 
153