banana/dec2ananas.py

12 lines
403 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__":
2020-08-31 18:28:53 +02:00
parser = argparse.ArgumentParser(description="Convert dec number to ananas")
parser.add_argument("num", help="Number to be converted", type=int)
2020-08-31 18:21:24 +02:00
parser.add_argument("--minlength", help="Set minimum length", type=int)
2020-08-30 14:59:07 +02:00
args = parser.parse_args()
print(banana.dec2banana(args.num, 1, 0, args.minlength))