vikash-python-library 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vikash_python_library/__init__.py +10 -5
- {vikash_python_library-0.1.1.dist-info → vikash_python_library-0.1.2.dist-info}/METADATA +1 -1
- vikash_python_library-0.1.2.dist-info/RECORD +5 -0
- vikash_python_library-0.1.1.dist-info/RECORD +0 -5
- {vikash_python_library-0.1.1.dist-info → vikash_python_library-0.1.2.dist-info}/WHEEL +0 -0
- {vikash_python_library-0.1.1.dist-info → vikash_python_library-0.1.2.dist-info}/entry_points.txt +0 -0
|
@@ -10,19 +10,21 @@ def multiply(numbers):
|
|
|
10
10
|
return result
|
|
11
11
|
|
|
12
12
|
def main():
|
|
13
|
-
parser = argparse.ArgumentParser(
|
|
13
|
+
parser = argparse.ArgumentParser(
|
|
14
|
+
description="Perform Maths Action using list of numbers"
|
|
15
|
+
)
|
|
14
16
|
|
|
15
17
|
parser.add_argument(
|
|
16
18
|
"operation",
|
|
17
|
-
choices=["add", "multiply"]
|
|
18
|
-
help=
|
|
19
|
+
choices=["add", "multiply"], # ← comma added
|
|
20
|
+
help="Operation to perform: add or multiply"
|
|
19
21
|
)
|
|
20
22
|
|
|
21
23
|
parser.add_argument(
|
|
22
24
|
"numbers",
|
|
23
25
|
nargs="+",
|
|
24
|
-
type=float
|
|
25
|
-
help="
|
|
26
|
+
type=float, # ← comma added
|
|
27
|
+
help="Numbers to perform the operation on"
|
|
26
28
|
)
|
|
27
29
|
|
|
28
30
|
my_arg = parser.parse_args()
|
|
@@ -35,3 +37,6 @@ def main():
|
|
|
35
37
|
|
|
36
38
|
return result
|
|
37
39
|
|
|
40
|
+
|
|
41
|
+
if __name__ == "__main__":
|
|
42
|
+
print(main())
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
vikash_python_library/__init__.py,sha256=1v6TRLsNV_znNqx2aVE3xejV-BrT1QDmGB1ef0mVcRg,880
|
|
2
|
+
vikash_python_library-0.1.2.dist-info/WHEEL,sha256=8ZlpUMJ7mlDirmlHRhDirEx_nPnARrwDjeE92mlk68E,81
|
|
3
|
+
vikash_python_library-0.1.2.dist-info/entry_points.txt,sha256=p_HjocR15M7KPgWIzml_ijt8oxtyuARi-Atr3lKkzCM,63
|
|
4
|
+
vikash_python_library-0.1.2.dist-info/METADATA,sha256=lLHIGZqQ_9XzT5MK-RZm8hlmswkkhzPV2OxLsUosGeo,246
|
|
5
|
+
vikash_python_library-0.1.2.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
vikash_python_library/__init__.py,sha256=MTULAmLOy01nvo6dlE5vDuUJZB5xfoyPDbSFg4fjj0A,767
|
|
2
|
-
vikash_python_library-0.1.1.dist-info/WHEEL,sha256=8ZlpUMJ7mlDirmlHRhDirEx_nPnARrwDjeE92mlk68E,81
|
|
3
|
-
vikash_python_library-0.1.1.dist-info/entry_points.txt,sha256=p_HjocR15M7KPgWIzml_ijt8oxtyuARi-Atr3lKkzCM,63
|
|
4
|
-
vikash_python_library-0.1.1.dist-info/METADATA,sha256=bpk15YIlPHWfrFJAo-5bAVOYoYmdzEriYrx5P_ORUaw,246
|
|
5
|
-
vikash_python_library-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
{vikash_python_library-0.1.1.dist-info → vikash_python_library-0.1.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|