diff --git a/UnicodePlot.html b/UnicodePlot.html index 7e4eea8..d3ecd2c 100644 --- a/UnicodePlot.html +++ b/UnicodePlot.html @@ -241,7 +241,7 @@
diff --git a/YouPlot.html b/YouPlot.html index e5a8beb..6666fe1 100644 --- a/YouPlot.html +++ b/YouPlot.html @@ -296,7 +296,7 @@ diff --git a/YouPlot/Backends.html b/YouPlot/Backends.html index b79155f..e40d8f5 100644 --- a/YouPlot/Backends.html +++ b/YouPlot/Backends.html @@ -118,7 +118,7 @@ diff --git a/YouPlot/Backends/Processing.html b/YouPlot/Backends/Processing.html index ed0ef0d..7422536 100644 --- a/YouPlot/Backends/Processing.html +++ b/YouPlot/Backends/Processing.html @@ -208,7 +208,7 @@ diff --git a/YouPlot/Backends/UnicodePlot.html b/YouPlot/Backends/UnicodePlot.html index d1fa403..e998074 100644 --- a/YouPlot/Backends/UnicodePlot.html +++ b/YouPlot/Backends/UnicodePlot.html @@ -1070,7 +1070,7 @@ diff --git a/YouPlot/Backends/UnicodePlot/Error.html b/YouPlot/Backends/UnicodePlot/Error.html index a7cccc0..fdc030f 100644 --- a/YouPlot/Backends/UnicodePlot/Error.html +++ b/YouPlot/Backends/UnicodePlot/Error.html @@ -114,7 +114,7 @@ diff --git a/YouPlot/Command.html b/YouPlot/Command.html index 1d062b8..4998ba1 100644 --- a/YouPlot/Command.html +++ b/YouPlot/Command.html @@ -673,25 +673,7 @@ 73 74 75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 +76# File 'lib/youplot/command.rb', line 30 @@ -709,24 +691,6 @@ return end - # config command - if @command == :config - if ENV['MYYOUPLOTRC'] - puts "config file : #{ENV['MYYOUPLOTRC']}" - puts parser.config.inspect - else - puts <<~EOS - You don't have a config file. The default config file paths are: - ./.youplot.yml, ./.youplotrc, ~/.youplot.yml, ~/.youplotrc - You can specify a config file with the environment variable MYYOUPLOTRC. - File format is YAML. For example: - width : 40 - height : 20 - EOS - end - return - end - # progressive mode if [:progressive] stop = false @@ -803,7 +767,7 @@ diff --git a/YouPlot/DSV.html b/YouPlot/DSV.html index cc005a0..677f9aa 100644 --- a/YouPlot/DSV.html +++ b/YouPlot/DSV.html @@ -460,7 +460,7 @@ diff --git a/YouPlot/Data.html b/YouPlot/Data.html index 4cc77a5..0ee3370 100644 --- a/YouPlot/Data.html +++ b/YouPlot/Data.html @@ -300,7 +300,7 @@ diff --git a/YouPlot/Options.html b/YouPlot/Options.html index c0380b2..d3f5fc9 100644 --- a/YouPlot/Options.html +++ b/YouPlot/Options.html @@ -1103,7 +1103,7 @@ diff --git a/YouPlot/Parameters.html b/YouPlot/Parameters.html index 9755adb..88a6fbe 100644 --- a/YouPlot/Parameters.html +++ b/YouPlot/Parameters.html @@ -1881,7 +1881,7 @@ diff --git a/YouPlot/Parser.html b/YouPlot/Parser.html index 2898041..f3a8a28 100644 --- a/YouPlot/Parser.html +++ b/YouPlot/Parser.html @@ -562,6 +562,28 @@ + + + + + +
# File 'lib/youplot/parser.rb', line 168 @@ -1554,6 +1581,7 @@ colors color show the list of available colors General options: + --config print config file info --help print command specific help menu --version print the version of YouPlot MSG @@ -1563,6 +1591,10 @@ main_parser.on('--help', 'print sub-command help menu') do show_main_help end + + main_parser.on('--config', 'show config file info') do + show_config_info + end end
-263 -264 -265 -266 -267 -268 -269 -270 -271 -272 -273 -274 -275 -276 -277 -278 -279 -280 -281 -282 -283 -284 285 286 287 @@ -1672,10 +1682,33 @@ 348 349 350 -351+351 +352 +353 +354 +355 +356 +357 +358 +359 +360 +361 +362 +363 +364 +365 +366 +367 +368 +369 +370 +371 +372 +373 +374
# File 'lib/youplot/parser.rb', line 263 +# File 'lib/youplot/parser.rb', line 285 def create_sub_parser @sub_parser = create_base_parser @@ -1756,6 +1789,7 @@ end when :config + show_config_info else = "uplot: unrecognized command '#{command}'" @@ -1832,26 +1866,26 @@-353 -354 -355 -356 -357 -358 -359 -360 -361 -362 -363 -364 -365 -366 -367 -368 -369+376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392
# File 'lib/youplot/parser.rb', line 353 +# File 'lib/youplot/parser.rb', line 376 def (argv = ARGV) begin @@ -1905,6 +1939,62 @@
+ + + +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 +226 +227 +228 +229+ |
+
+ # File 'lib/youplot/parser.rb', line 214 + +def show_config_info + if ENV['MYYOUPLOTRC'] + puts "config file : #{ENV['MYYOUPLOTRC']}" + puts config.inspect + else + puts <<~EOS + You don't have a config file. The default config file paths are: + ./.youplot.yml, ./.youplotrc, ~/.youplot.yml, ~/.youplotrc + You can specify a config file with the environment variable MYYOUPLOTRC. + File format is YAML. For example: + width : 40 + height : 20 + EOS + end + exit if YouPlot.run_as_executable? +end+ |
+
-203 -204 -205 -206 -207+208 +209 +210 +211 +212
# File 'lib/youplot/parser.rb', line 203 +# File 'lib/youplot/parser.rb', line 208 def show_main_help(out = $stdout) out.puts main_parser. @@ -1956,15 +2046,15 @@-222 -223 -224 -225 -226 -227+244 +245 +246 +247 +248 +249
# File 'lib/youplot/parser.rb', line 222 +# File 'lib/youplot/parser.rb', line 244 def sub_parser_add_canvas canvas_types = UnicodePlot::Canvas::CANVAS_CLASS_MAP.keys.join(', ') @@ -1992,16 +2082,16 @@-247 -248 -249 -250 -251 -252 -253+269 +270 +271 +272 +273 +274 +275
# File 'lib/youplot/parser.rb', line 247 +# File 'lib/youplot/parser.rb', line 269 def sub_parser_add_fmt_xyxy sub_parser.on_head('--fmt STR', String, @@ -2030,16 +2120,16 @@-255 -256 -257 -258 -259 -260 -261+277 +278 +279 +280 +281 +282 +283
# File 'lib/youplot/parser.rb', line 255 +# File 'lib/youplot/parser.rb', line 277 def sub_parser_add_fmt_yx sub_parser.on_head('--fmt STR', String, @@ -2068,14 +2158,14 @@-241 -242 -243 -244 -245+263 +264 +265 +266 +267
# File 'lib/youplot/parser.rb', line 241 +# File 'lib/youplot/parser.rb', line 263 def sub_parser_add_grid sub_parser.on_head('--[no-]grid', TrueClass, 'draws grid-lines at the origin') do |v| @@ -2102,14 +2192,14 @@-209 -210 -211 -212 -213+231 +232 +233 +234 +235
# File 'lib/youplot/parser.rb', line 209 +# File 'lib/youplot/parser.rb', line 231 def sub_parser_add_symbol sub_parser.on_head('--symbol STR', String, 'character to be used to plot the bars') do |v| @@ -2136,14 +2226,14 @@-229 -230 -231 -232 -233+251 +252 +253 +254 +255
# File 'lib/youplot/parser.rb', line 229 +# File 'lib/youplot/parser.rb', line 251 def sub_parser_add_xlim sub_parser.on_head('--xlim FLOAT,FLOAT', Array, 'plotting range for the x coordinate') do |v| @@ -2170,15 +2260,15 @@-215 -216 -217 -218 -219 -220+237 +238 +239 +240 +241 +242
# File 'lib/youplot/parser.rb', line 215 +# File 'lib/youplot/parser.rb', line 237 def sub_parser_add_xscale = UnicodePlot::ValueTransformer::PREDEFINED_TRANSFORM_FUNCTIONS.keys.join(', ') @@ -2206,14 +2296,14 @@-235 -236 -237 -238 -239+257 +258 +259 +260 +261
# File 'lib/youplot/parser.rb', line 235 +# File 'lib/youplot/parser.rb', line 257 def sub_parser_add_ylim sub_parser.on_head('--ylim FLOAT,FLOAT', Array, 'plotting range for the y coordinate') do |v| @@ -2230,7 +2320,7 @@ diff --git a/YouPlot/Parser/Error.html b/YouPlot/Parser/Error.html index 534b917..4b36ea8 100644 --- a/YouPlot/Parser/Error.html +++ b/YouPlot/Parser/Error.html @@ -114,7 +114,7 @@ diff --git a/_index.html b/_index.html index f3bd917..10e13bb 100644 --- a/_index.html +++ b/_index.html @@ -238,7 +238,7 @@ diff --git a/file.README.html b/file.README.html index 180639b..0322515 100644 --- a/file.README.html +++ b/file.README.html @@ -397,7 +397,7 @@ If so, please feel free to contact us. diff --git a/index.html b/index.html index 1a62064..0417b1b 100644 --- a/index.html +++ b/index.html @@ -397,7 +397,7 @@ If so, please feel free to contact us. diff --git a/method_list.html b/method_list.html index 4c1b721..6810837 100644 --- a/method_list.html +++ b/method_list.html @@ -590,13 +590,21 @@