1
0
Fork 0
forked from itec/banana
banana/dec2ananas.py

12 lines
414 B
Python
Raw Normal View History

2020-08-30 14:59:07 +02:00
#!/usr/bin/env python3
import argparse
import banana
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Convert dec number to banana")
parser.add_argument("num", help="number to be converted", type=int)
parser.add_argument("--minlength", help="Set minimum length", type=int, default=0)
args = parser.parse_args()
print(banana.dec2banana(args.num, 1, 0, args.minlength))