diff --git a/src/bin/cenpkg b/src/bin/cenpkg index 6756800..1fc128f 100755 --- a/src/bin/cenpkg +++ b/src/bin/cenpkg @@ -1,6 +1,8 @@ #!/usr/bin/env python +import sys +import os from centpkg import cli if __name__ == '__main__': - cli.run() + cli.run(cli_name=os.path.basename(sys.argv[0])) diff --git a/test.py b/test.py new file mode 100755 index 0000000..1fb81f0 --- /dev/null +++ b/test.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python3 +import sys + +print(sys.argv)