summaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/options.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/options.cpp b/src/options.cpp
index 9ade56a..7fbd70e 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -52,7 +52,7 @@ bool hasDigits( const Bu::String &s )
52 return false; 52 return false;
53} 53}
54 54
55int Options::textPrimes( Bu::StringArray ) 55int Options::textPrimes( Bu::StringArray aArgs )
56{ 56{
57 Number tst( 0, 36 ); 57 Number tst( 0, 36 );
58 Number max( 0, 36 ); 58 Number max( 0, 36 );
@@ -61,8 +61,12 @@ int Options::textPrimes( Bu::StringArray )
61 Number fact( 0, 36 ); 61 Number fact( 0, 36 );
62 one = "1"; 62 one = "1";
63 fact = "2"; 63 fact = "2";
64 if( aArgs.getSize() >= 2 )
65 tst = aArgs[1];
66 else
67 tst = "1";
64 68
65 for( tst = "1";; tst = tst + one ) 69 for(;; tst = tst + one )
66 { 70 {
67 if( hasDigits( tst.toString() ) ) 71 if( hasDigits( tst.toString() ) )
68 continue; 72 continue;