exe/gm-notepad in gm-notepad-0.0.1 vs exe/gm-notepad in gm-notepad-0.0.2
- old
+ new
@@ -2,11 +2,11 @@
require 'gm/notepad'
require 'optparse'
config = {
config_reporting: false,
- defer_output: true,
+ defer_output: false,
interactive_buffer: $stderr,
output_buffer: $stdout,
paths: ['.'],
table_extension: '.txt',
with_timestamp: false
@@ -41,10 +41,10 @@
options.on("-pPATH", "--path=PATH", String, "Path for {table_name}.<config.table_extension> files (Default: #{config[:paths].inspect})") do |path|
config[:paths] << path
end
- options.on("-tTABLE_EXTENSION", "--table_extension=TABLE_EXTENSION", String, "Path for {table_name}.<config.table_extension> files (Default: #{config[:table_extension].inspect})") do |table_extension|
+ options.on("-tEXT", "--table_extension=EXT", String, "Path for {table_name}.<config.table_extension> files (Default: #{config[:table_extension].inspect})") do |table_extension|
config[:table_extension] = table_extension
end
options.on("-l", "--list_tables", "List tables loaded (Default: #{config[:list_tables].inspect})") do |list_tables|
config[:list_tables] = list_tables