|
@@ -31,6 +31,7 @@ SlopOptions* getOptions( Options& options ) {
|
31
|
31
|
glm::vec4 color = glm::vec4( foo->r, foo->g, foo->b, foo->a );
|
32
|
32
|
options.getColor("color", 'c', color);
|
33
|
33
|
options.getBool("nokeyboard", 'k', foo->nokeyboard);
|
|
34
|
+ std::cout << foo->nokeyboard << "\n";
|
34
|
35
|
options.getString( "xdisplay", 'x', foo->xdisplay );
|
35
|
36
|
options.getString( "shader", 's', foo->shader );
|
36
|
37
|
foo->r = color.r;
|
|
@@ -89,7 +90,7 @@ void printHelp() {
|
89
|
90
|
std::cout << "-h, --help Print help and exit\n";
|
90
|
91
|
std::cout << "-v, --version Print version and exit\n";
|
91
|
92
|
std::cout << "Options\n";
|
92
|
|
- std::cout << " -x, --xdisplay=hostname:number.screen_number\n";
|
|
93
|
+ std::cout << " -d, --xdisplay=hostname:number.screen_number\n";
|
93
|
94
|
std::cout << " Sets the x display.\n";
|
94
|
95
|
std::cout << " -k, --nokeyboard Disables the ability to cancel selections with\n";
|
95
|
96
|
std::cout << " the keyboard. (default=off)\n";
|
|
@@ -120,9 +121,8 @@ void printHelp() {
|
120
|
121
|
std::cout << " highlights it. This is only useful when\n";
|
121
|
122
|
std::cout << " --color is set to a transparent color.\n";
|
122
|
123
|
std::cout << " (default=off)\n";
|
123
|
|
- std::cout << " --shader=STRING Sets the shader to load and use from\n";
|
|
124
|
+ std::cout << " -r, --shader=STRING Sets the shader to load and use from\n";
|
124
|
125
|
std::cout << " ~/.config/slop/\n";
|
125
|
|
- std::cout << " (default=`simple')\n";
|
126
|
126
|
std::cout << " -f, --format=STRING Set the output format string. Format specifiers\n";
|
127
|
127
|
std::cout << " are %x, %y, %w, %h, %i, %g, and %c.\n";
|
128
|
128
|
std::cout << " (default=`%g\n')\n";
|