- Extract 4756 source files from cli.js.map (57MB) - Set up Bun build system with bun:bundle feature flag shim - Configure 90+ compile-time feature flags matching production defaults - Inject MACRO constants (VERSION, BUILD_TIME, etc.) - Create stubs for private packages (color-diff-napi, modifiers-napi, etc.) - Install all public dependencies via pnpm - Patch commander v14 to allow multi-char short flags (-d2e) - Build output: dist/cli.js (22MB), verified working
22 lines
731 B
Python
22 lines
731 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from argparse import ArgumentParser
|
|
from asciichartpy import plot
|
|
|
|
def parse_args():
|
|
parser = ArgumentParser()
|
|
parser.add_argument("series", type=float, nargs="+")
|
|
parser.add_argument("--offset", type=int)
|
|
parser.add_argument("--height", type=float)
|
|
parser.add_argument("--format", help="Format for tick numbers.")
|
|
parser.add_argument("--minimum", type=float, help="Min y value.")
|
|
parser.add_argument("--maximum", type=float, help="Max y value.")
|
|
return parser.parse_args()
|
|
|
|
if __name__ == "__main__":
|
|
args = vars(parse_args())
|
|
series = args.pop("series")
|
|
cfg = {k: v for k, v in args.items() if v is not None}
|
|
print(plot(series, cfg))
|