google / python-fire

Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Other
26.86k stars 1.44k forks source link

Detect the program name when `python -m` was executed #424

Open dukecat0 opened 1 year ago

dukecat0 commented 1 year ago

Closes #76

Old behaviour:

SYNOPSIS
    __main__.py ARGS

New behaviour:

SYNOPSIS
    '/usr/bin/python -m sample' ARGS
dbieber commented 1 year ago

Good idea! Thanks for submitting 👍