-
Hi, there. argparse I have a package In parser = argparse.ArgumentParser(prog=__package__, description=__doc__) batch script @echo off
setlocal
set PYTHONPATH=%~dp0;%PYTHONPATH%
call python -m %~n0 %*
click use
I find Is it able to set by user? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
read the source, it is easy. calling if __name__ == '__main__':
cli(prog_name=__package__) |
Beta Was this translation helpful? Give feedback.
read the source, it is easy.
calling
cli
is callingclick/core.py:BaseCommand:main
, just pass__package__
tocli