-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
24 lines (20 loc) · 798 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import argparse
from insertion_sort import *
from Bubble_sort import *
from quick_sort import *
from shell_sort import *
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog='main.py')
parser.add_argument('--insertion', help='insertion sort algorithm',dest='insertion',action="store_true")
parser.add_argument('--bubble', help='Bubble sort algorithm', dest='bubble',action="store_true")
parser.add_argument('--quick', help='quick sort algorithm', dest='quick',action="store_true")
parser.add_argument('--shell', help=' shell sort algorithm', dest='shell',action="store_true")
args = parser.parse_args()
if args.insertion:
sort()
if args.bubble:
bubble()
if args.quick:
quick_sort()
if args.shell:
shell_sort()