~ubuntu-branches/debian/sid/filezilla/sid

« back to all changes in this revision

Viewing changes to src/interface/cmdline.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adrien Cunin
  • Date: 2009-08-20 00:38:30 UTC
  • mfrom: (1.3.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090820003830-0prw6uzkgv06kbkh
* New upstream release (LP: #389525)
   - New feature: remote file search
   - pkg-config is now used to search for gnutls (Closes: #529822)
* Changed package descriptions, not mentioning Windows anymore
* Updated features list in package description
* Added pkg-config to the build-dependencies
* Build-Depend on libgnutls-dev version >= 2.8.3, as required by upstream
* Updated Standards-Version to 3.8.3
* debian/rules: touch magic on configure and configure.in to make sure the
  first has a more recent timestamp than the second (Closes: #529701)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
        m_parser.AddSwitch(_T("h"), _T("help"), _("Shows this help dialog"), wxCMD_LINE_OPTION_HELP);
7
7
        m_parser.AddSwitch(_T("s"), _T("site-manager"), _("Start with opened Site Manager"));
8
8
        m_parser.AddOption(_T("c"), _T("site"), _("Connect to specified Site Manager site"));
 
9
        m_parser.AddOption(_T("l"), _T("logontype"), _("Logontype, can only be used together with FTP URL. Argument has to be either 'ask' or 'interactive'"));
9
10
#ifdef __WXMSW__
10
11
        m_parser.AddSwitch(_T(""), _T("close"), _("Close all running instances of FileZilla"));
11
12
#endif
44
45
                if (m_parser.Found(_T("c"), &value))
45
46
                        return value;
46
47
                break;
 
48
        case logontype:
 
49
                if (m_parser.Found(_T("l"), &value))
 
50
                        return value;
 
51
                break;
47
52
        }
48
53
 
49
54
        return _T("");
73
78
                return false;
74
79
        }
75
80
 
 
81
        wxString type = GetOption(logontype);
 
82
        if (type != _T(""))
 
83
        {
 
84
                if (!m_parser.GetParamCount())
 
85
                {
 
86
                        wxMessageBox(_("-l can only be used together with an FTP URL."), _("Syntax error in command line"));
 
87
                        return false;
 
88
                }
 
89
 
 
90
                if (type != _T("ask") && type != _T("interactive"))
 
91
                {
 
92
                        wxMessageBox(_("Logontype has to be either 'ask' or 'interactive' (without the quotes)."), _("Syntax error in command line"));
 
93
                        return false;
 
94
                }
 
95
        }
 
96
 
76
97
        if (m_parser.Found(_T("verbose")))
77
98
                wxLog::SetVerbose(true);
78
99