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

« back to all changes in this revision

Viewing changes to src/tools/davix_tool_copy_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:
20
20
}
21
21
 
22
22
 
23
 
static std::string help_msg(){
24
 
    return Tool::get_copy_description_options() +
25
 
            Tool::get_common_options();
 
23
static std::string help_msg(const std::string & cmd_path){
 
24
    std::string help_str = fmt::format("Usage : {} ", cmd_path);
 
25
    help_str += Tool::get_copy_description_options();
 
26
    help_str += Tool::get_common_options();
 
27
 
 
28
    return help_str;
26
29
}
27
30
 
28
31
 
31
34
    int retcode=-1;
32
35
    Tool::OptParams opts;
33
36
    DavixError* tmp_err=NULL;
34
 
    opts.help_msg = help_msg();
 
37
    opts.help_msg = help_msg(argv[0]);
35
38
 
36
39
    if( (retcode= Tool::parse_davix_options(argc, argv, opts, &tmp_err)) ==0){
37
40
        Context c;