danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.83k stars 101 forks source link

Running with *.js and '*.js' (quoted) should behave the same #84

Closed danvk closed 5 years ago

danvk commented 5 years ago

I got quite confused when I tried to run:

$ source-map-explorer *.js
Usage:
  source-map-explorer <script.js> [<script.js.map>]
  source-map-explorer [--json | --html | --tsv] [-m | --only-mapped] <script.js> [<script.js.map>] [--replace=BEFORE --with=AFTER]... [--noroot]
  source-map-explorer -h | --help | --version

in a directory with 4 bundles. It just shows the usage.

The solution was to run with '*.js' (quoted):

$ source-map-explorer '*.js'

These should do the same thing.

nikolay-borzov commented 5 years ago

Have you tried source-map-explorer *.js on Unix system?

nikolay-borzov commented 5 years ago

Here is how source-map-explorer './testdata/*.*' is parsed on windows:

 '<script.js>': '\'./testdata/*.*\''

Perhaps we should try another argument parser?

nikolay-borzov commented 5 years ago

Addess https://github.com/danvk/source-map-explorer/issues/106