~ubuntu-branches/debian/stretch/spice/stretch

« back to all changes in this revision

Viewing changes to client/cmd_line_parser.h

  • Committer: Package Import Robot
  • Author(s): Liang Guo, Liang Guo, Michael Tokarev
  • Date: 2011-11-29 14:37:08 UTC
  • mfrom: (0.6.1) (0.4.2) (2.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111129143708-jptkxyjl3a4rds2r
Tags: 0.10.0-1
[ Liang Guo ]
* New upstream release (Closes: #651262)
* Refresh debian/copyright
* Remove fix-typo-in-cmd_line_parser-cpp.patch, applied upstream
* Remove fix-typo-in-record-cpp.patch, applied upstream
* Remove use-requires-private-for-libspice-pkgconfig.patch, applied upstream
* Change Build-Depends on libspice-protocol-dev to (>= 0.9.1~)
* Refresh libspice-server1.symbols
* Update debian/rules clean target
* Ignore common/win/my_getopt-1.5/Makefile change when building package
* debian/control: set DMUA

[ Michael Tokarev ]
* use `rm -f' instead of `-rm' in debian/rules clean targets
* remove python_modules/*.pyc in clean target

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
    void add(int id, const std::string& name, const std::string& help,
38
38
             const std::string& arg_name, bool required_arg, char short_name = 0);
39
 
    void set_multi(int id, char seperator);
 
39
    void set_multi(int id, char separator);
40
40
    void set_required(int id);
41
41
 
42
42
    void begin(int argc, char** argv);
64
64
 
65
65
    void build();
66
66
 
67
 
    char* start_multi(char *optarg, char seperator);
 
67
    char* start_multi(char *optarg, char separator);
68
68
    char* next_multi();
69
69
 
70
70
private:
83
83
        std::string help;
84
84
        bool optional;
85
85
        bool is_set;
86
 
        char seperator;
 
86
        char separator;
87
87
    };
88
88
 
89
89
    std::string _description;
96
96
    char** _argv;
97
97
    char* _multi_args;
98
98
    char* _multi_next;
99
 
    char _multi_seperator;
 
99
    char _multi_separator;
100
100
    bool _positional_args;
101
101
    bool _done;
102
102
};