encoding-tools 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin2txt CHANGED
@@ -112,7 +112,7 @@ function
112
112
 
113
113
  function
114
114
  _overrides_set() {
115
- if ( target_message == "" ) {
115
+ if ( encoding_format == "" ) {
116
116
  encoding_format =
117
117
  "base64";
118
118
  }
@@ -206,12 +206,17 @@ function
206
206
  _msg;
207
207
  _argv =
208
208
  _argv_get();
209
+ _options =
210
+ _argv[
211
+ "_"];
209
212
  quiet =
210
213
  "y";
211
214
  runtime_environment =
212
215
  "node";
213
- if ( "help" in _argv ||
214
- "h" in _argv) {
216
+ if ( _options.indexOf(
217
+ "--help") > -1 ||
218
+ _options.indexOf(
219
+ "-h") > -1) {
215
220
  _help_display =
216
221
  true;
217
222
  }
@@ -221,7 +226,6 @@ function
221
226
  _usage(
222
227
  0);
223
228
  }
224
- console.log(_argv);
225
229
  if ( typeof(
226
230
  _argv) == "undefined" ||
227
231
  _argv[
@@ -300,10 +304,15 @@ if ( _cmdline_check(
300
304
  "bin2txt.js") == true ) {
301
305
  _cmdline_parse();
302
306
  }
307
+ _overrides_set();
303
308
  _config_show();
304
309
  app_opts = [
305
310
  in_file,
306
- out_txt_prefix
311
+ out_txt_prefix,
312
+ encoding_format,
313
+ string_length,
314
+ buffer_size,
315
+ amount_only
307
316
  ];
308
317
  _bin2txt.apply(
309
318
  null,