-
Notifications
You must be signed in to change notification settings - Fork 0
/
args.py
56 lines (47 loc) · 1.53 KB
/
args.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--setadmin',
type=str,
nargs=2,
help='set admin'
)
parser.add_argument('--addcategory',
type=str,
nargs=3,
help='add categories'
)
parser.add_argument('--addproduct',
type=str,
nargs=6,
help='add product'
)
parser.add_argument('--viewcategory',
type=str,
nargs=1,
help='view category'
)
parser.add_argument('--viewproducts',
type=str,
nargs=1,
help='view products'
)
parser.add_argument('--userregister',
type=str,
nargs=2,
help='user register'
)
parser.add_argument('--addtocart',
type=str,
nargs=3,
help='add to cart'
)
parser.add_argument('--viewcart',
type=str,
nargs=1,
help='view cart'
)
parser.add_argument('--removefromcart',
type=str,
nargs=3,
help='remove from cart'
)