forked from itec/banana
11 lines
403 B
Python
Executable file
11 lines
403 B
Python
Executable file
#!/usr/bin/env python3
|
|
import argparse
|
|
import banana
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser(description="Convert dec number to ananas")
|
|
parser.add_argument("num", help="Number to be converted", type=int)
|
|
parser.add_argument("--minlength", help="Set minimum length", type=int)
|
|
args = parser.parse_args()
|
|
|
|
print(banana.dec2banana(args.num, 1, 0, args.minlength))
|