Przeglądaj źródła

swapped around options a bit again

naelstrof 7 lat temu
rodzic
commit
dfd9462608
4 zmienionych plików z 3 dodań i 3 usunięć
  1. 1
    1
      slop.1
  2. BIN
      slop.1.gz
  3. 1
    1
      src/main.cpp
  4. 1
    1
      src/options.hpp

+ 1
- 1
slop.1 Wyświetl plik

@@ -15,7 +15,7 @@ Print help and exit.
15 15
 .BR \-v ", " \-\-version
16 16
 Print version and exit.
17 17
 .TP
18
-.BR \-d ", " \-\-xdisplay=\fIhostname:number.screen_number\fR
18
+.BR \-x ", " \-\-xdisplay=\fIhostname:number.screen_number\fR
19 19
 Sets the xdisplay to use.
20 20
 .TP
21 21
 .BR \-b ", " \-\-bordersize=\fIFLOAT\fR

BIN
slop.1.gz Wyświetl plik


+ 1
- 1
src/main.cpp Wyświetl plik

@@ -89,7 +89,7 @@ void printHelp() {
89 89
     std::cout << "-h, --help                    Print help and exit\n";
90 90
     std::cout << "-v, --version                 Print version and exit\n";
91 91
     std::cout << "Options\n";
92
-    std::cout << "  -d, --xdisplay=hostname:number.screen_number\n";
92
+    std::cout << "  -x, --xdisplay=hostname:number.screen_number\n";
93 93
     std::cout << "                                Sets the x display.\n";
94 94
 	std::cout << "  -k, --nokeyboard              Disables the ability to cancel selections with\n";
95 95
 	std::cout << "                                  the keyboard.  (default=off)\n";

+ 1
- 1
src/options.hpp Wyświetl plik

@@ -29,7 +29,7 @@
29 29
 #include <glm/glm.hpp>
30 30
 
31 31
 static std::string validStringArguments[] = { "bordersize", "padding", "color", "shader", "highlight", "format", "tolerance", "nodecorations", "nokeyboard", "help", "xdisplay", "version", "quiet" };
32
-static char validCharArguments[] = { 'b', 'p', 'c', 'r', 'l', 'f', 't', 'n', 'k', 'h', 'd', 'v', 'q' };
32
+static char validCharArguments[] = { 'b', 'p', 'c', 'r', 'l', 'f', 't', 'n', 'k', 'h', 'x', 'v', 'q' };
33 33
 static unsigned int isFlagArgument[] = { false, false, false, false, true, false, false, false, true, true, false, true, true };
34 34
 static unsigned int validArgumentCount = 13;
35 35
 static unsigned int maxFloatingValues = 0;