~ubuntu-branches/ubuntu/wily/davix/wily

« back to all changes in this revision

Viewing changes to src/tools/davix_tool_mkcol_main.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2015-07-31 13:17:55 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150731131755-mizprbmn7ogv33te
Tags: 0.4.1-1
* Update to version 0.4.1
* Implement Multi-Arch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
 
41
41
 
42
 
static std::string help_msg(){
43
 
    return Tool::get_base_description_options() +
44
 
            Tool::get_common_options();
 
42
static std::string help_msg(const std::string & cmd_path){
 
43
    std::string help_msg = fmt::format("Usage : {} ", cmd_path);
 
44
    help_msg += Tool::get_base_description_options();
 
45
    help_msg += Tool::get_common_options();
 
46
 
 
47
    return help_msg;
45
48
}
46
49
 
47
50
 
50
53
    int retcode=-1;
51
54
    Tool::OptParams opts;
52
55
    DavixError* tmp_err=NULL;
53
 
    opts.help_msg = help_msg();
 
56
    opts.help_msg = help_msg(argv[0]);
54
57
 
55
58
    if( (retcode= Tool::parse_davix_options(argc, argv, opts, &tmp_err)) ==0){
56
59
        Context c;