summaryrefslogtreecommitdiff
path: root/tools/ltgrey.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-30 05:31:03 (GMT)
committerJohn Denker <jsd@av8n.com>2012-07-30 05:31:03 (GMT)
commit2f6fd23b841c1f4e3c18d1cbfd228784aa8c3298 (patch)
treeeed4240258bad34d68f260709574b50c68944f8f /tools/ltgrey.c
parent67eb4c6c804c728db329a7f4a77d5a3cbd1b993c (diff)
set40 appears to be working
Diffstat (limited to 'tools/ltgrey.c')
-rw-r--r--tools/ltgrey.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/ltgrey.c b/tools/ltgrey.c
index 7a63b04..bb43b80 100644
--- a/tools/ltgrey.c
+++ b/tools/ltgrey.c
@@ -30,6 +30,7 @@ int main(int _argc, char** _argv){
int stain(0);
int dns_mode(0);
string get40_mid;
+ string set40_mid;
while (argc > 0) {
string arg = argv[0]; argc--; argv++;
if (prefix(arg, "-scan")) {
@@ -46,7 +47,12 @@ int main(int _argc, char** _argv){
exeunt(ex_syserr);
}
get40_mid = *argv++; argc--;
-
+ } else if (prefix(arg, "-set40")) {
+ if (!argc){
+ cerr << "Option '" << arg << "' requires an argument" << endl;
+ exeunt(ex_syserr);
+ }
+ set40_mid = *argv++; argc--;
} else if (prefix(arg, "-shift")
|| prefix(arg, "-shift")) {
if (!argc){
@@ -88,6 +94,10 @@ int main(int _argc, char** _argv){
return 0;
}
+ if (set40_mid.length()){
+ return foo.set40(set40_mid, shift);
+ }
+
if (scanmode) {
string dirname = parent_dir + "/quarante";
scan(foo.progid, dirname, copies);