Skip to content

Commit 01b38e1

Browse files
committed
Minor fixes
1 parent 751371b commit 01b38e1

File tree

3 files changed

+5
-24
lines changed

3 files changed

+5
-24
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ build:ubuntu:20.04:
1212
script:
1313
- mkdir build
1414
- cd build
15-
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-O1 -g' ..
16-
- make
15+
- cmake -DCMAKE_CXX_FLAGS='-O2' ..
16+
- make -j2

Daemon/ydotoold.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@ int main(int argc, char **argv) {
2929
("h,help", "Show help")
3030
("socket-path", "Socket path", cxxopts::value<std::string>()->default_value("/tmp/.ydotool_socket"))
3131
("socket-perm", "Socket permission", cxxopts::value<std::string>()->default_value("0600"))
32-
("positional",
33-
"Positional arguments: these are the arguments that are entered "
34-
"without an option", cxxopts::value<std::string>())
3532
;
36-
// options.allow_unrecognised_options();
37-
options.parse_positional({"positional"});
38-
options.positional_help("<buttons>");
39-
40-
options.show_positional_help();
41-
4233

4334
std::string cfg_socket_path, cfg_socket_perm;
4435

@@ -50,18 +41,6 @@ int main(int argc, char **argv) {
5041
return 0;
5142
}
5243

53-
if (cmd.count("positional"))
54-
{
55-
std::cout << "Positional = {";
56-
auto& v = cmd["positional"].as<std::string>();
57-
58-
std::cout << v;
59-
for (const auto& s : cmd.unmatched()) {
60-
std::cout << s << ", ";
61-
}
62-
std::cout << "}" << std::endl;
63-
}
64-
6544
cfg_socket_path = cmd["socket-path"].as<std::string>();
6645
cfg_socket_perm = cmd["socket-perm"].as<std::string>();
6746

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Generic Linux command-line automation tool (no X!)
44
[![pipeline status](https://gitlab.com/ReimuNotMoe/ydotool/badges/master/pipeline.svg)](https://gitlab.com/ReimuNotMoe/ydotool/pipelines)
55

66
## Packages & Releases
7-
Currently there are none for this new version. You may select an older tag to view the previous version.
7+
You may select an older tag to view the previous version.
8+
9+
- [Static build for Ubuntu 20.04](https://gitlab.com/ReimuNotMoe/ydotool/-/jobs/artifacts/master/browse/build?job=build:ubuntu:20.04)
810

911
## Important Notes
1012
The project is now refactored, some redundant stuff are removed, and it no longer depends on boost. Since it's in a hurry, some new bugs may be introduced. You're welcome to find them out.

0 commit comments

Comments
 (0)