mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-04 02:06:22 -04:00
chore: prepare pxattr for release
This commit is contained in:
parent
88d0c1ee3b
commit
55b326fe12
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <dwarfs/tool/program_options_helpers.h>
|
#include <dwarfs/tool/program_options_helpers.h>
|
||||||
#include <dwarfs/tool/sys_char.h>
|
#include <dwarfs/tool/sys_char.h>
|
||||||
|
#include <dwarfs/tool/tool.h>
|
||||||
#include <dwarfs/xattr.h>
|
#include <dwarfs/xattr.h>
|
||||||
|
|
||||||
namespace dwarfs::tool {
|
namespace dwarfs::tool {
|
||||||
@ -61,12 +62,13 @@ int pxattr_main(int argc, sys_char** argv) {
|
|||||||
po::notify(vm);
|
po::notify(vm);
|
||||||
|
|
||||||
if (vm.count("help")) {
|
if (vm.count("help")) {
|
||||||
std::cout << desc << std::endl;
|
auto constexpr usage = "Usage: pxattr [OPTIONS...]\n";
|
||||||
|
std::cout << tool::tool_header("pxattr") << usage << "\n" << desc << "\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vm.count("path")) {
|
if (!vm.count("path")) {
|
||||||
std::cerr << "no path specified" << std::endl;
|
std::cerr << "no path specified\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,8 +121,6 @@ int pxattr_main(int argc, sys_char** argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "successfully completed\n";
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user