|
@@ -41,7 +41,15 @@ SlopOptions* getOptions( Options& options ) {
|
41
|
41
|
foo->b = color.b;
|
42
|
42
|
foo->a = color.a;
|
43
|
43
|
options.getBool("highlight", 'l', foo->highlight);
|
44
|
|
- options.getInt("nodecorations", 'n', foo->nodecorations);
|
|
44
|
+ try {
|
|
45
|
+ bool test = false;
|
|
46
|
+ options.getBool("nodecorations", 'n', test);
|
|
47
|
+ if ( test ) {
|
|
48
|
+ foo->nodecorations = 1;
|
|
49
|
+ }
|
|
50
|
+ } catch( ... ) {
|
|
51
|
+ options.getInt("nodecorations", 'n', foo->nodecorations);
|
|
52
|
+ }
|
45
|
53
|
return foo;
|
46
|
54
|
}
|
47
|
55
|
|
|
@@ -116,6 +124,8 @@ void printHelp() {
|
116
|
124
|
std::cout << " 1 will enable a light attempt to\n";
|
117
|
125
|
std::cout << " remove decorations. Setting this to 2 will\n";
|
118
|
126
|
std::cout << " enable aggressive decoration removal.\n";
|
|
127
|
+ std::cout << " Supplying slop with just `-n` is\n";
|
|
128
|
+ std::cout << " equivalent to supplying `-n1`.\n";
|
119
|
129
|
std::cout << " (default=`0')\n";
|
120
|
130
|
std::cout << " -q, --quiet Disable any unnecessary cerr output. Any\n";
|
121
|
131
|
std::cout << " warnings simply won't print.\n";
|