Skip to content

Commit fdf76dc

Browse files
authored
Merge pull request #27 from JE-Chen/dev
Dev
2 parents 20f62d1 + 74e3851 commit fdf76dc

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.idea/workspace.xml

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="je_auto_control_dev",
8-
version="0.0.14",
8+
version="0.0.15",
99
author="JE-Chen",
1010
author_email="[email protected]",
1111
description="auto testing",

je_auto_control/__main__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
if __name__ == "__main__":
88
parser = argparse.ArgumentParser()
9-
parser.add_argument("execute_file", type=str, help="choose action file to execute")
9+
parser.add_argument("-e", "--execute_file", type=str, help="choose action file to execute")
1010
args = parser.parse_args()
11-
execute_action(read_action_json(args.execute_file))
12-
print('execute action:', args.execute_file)
11+
if args.execute_file is not None:
12+
execute_action(read_action_json(args.execute_file))
13+
else:
14+
print("No argument, Hello There :)")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="je_auto_control",
8-
version="0.0.84",
8+
version="0.0.85",
99
author="JE-Chen",
1010
author_email="[email protected]",
1111
description="auto testing",

test/unit_test/argparse/argparse_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
print(os.getcwd())
44

55
os.system("cd " + os.getcwd())
6-
os.system("python je_auto_control " + os.getcwd() + r"/test/unit_test/argparse/test.json")
6+
os.system("python je_auto_control --execute_file " + os.getcwd() + r"/test/unit_test/argparse/test.json")
77

88

0 commit comments

Comments
 (0)