--- /home/brouard/bin/cppbeautifier 2016-03-05 17:58:37.409403832 +0100 +++ /home/brouard/bin/cppbeauty 2016-03-05 17:49:55.876384290 +0100 @@ -6,7 +6,7 @@ my (%FILE_CACHE,@FILES_USED,$FILE_CACHE_LIMIT); my ($cur_src_file, $cur_src_line, $cur_file); -$FILE_CACHE_LIMIT = 100; +$FILE_CACHE_LIMIT = 1000; my %options; @@ -17,11 +17,18 @@ } -print_help( "Missing -i option") if (! defined $options{'i'} ); -print_help( "Missing -o option") if (! defined $options{'o'} ); - -$in_file = $options{'i'}; -$out_file = $options{'o'}; +# print_help( "Missing -i option") if (! defined $options{'i'} ); +# print_help( "Missing -o option") if (! defined $options{'o'} ); +if (! defined $options{'i'} ){ + $in_file = ; +}else{ + $in_file = $options{'i'}; +} +if (! defined $options{'o'} ){ + $out_file = ; +} else { + $out_file = $options{'o'}; +} $dir_name = $options{'d'}; process_cpp_file($in_file,$out_file,$dir_name);