Skip to content
Merged

Dev #27

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="je_auto_control_dev",
version="0.0.14",
version="0.0.15",
author="JE-Chen",
author_email="[email protected]",
description="auto testing",
Expand Down
8 changes: 5 additions & 3 deletions je_auto_control/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("execute_file", type=str, help="choose action file to execute")
parser.add_argument("-e", "--execute_file", type=str, help="choose action file to execute")
args = parser.parse_args()
execute_action(read_action_json(args.execute_file))
print('execute action:', args.execute_file)
if args.execute_file is not None:
execute_action(read_action_json(args.execute_file))
else:
print("No argument, Hello There :)")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="je_auto_control",
version="0.0.84",
version="0.0.85",
author="JE-Chen",
author_email="[email protected]",
description="auto testing",
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/argparse/argparse_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
print(os.getcwd())

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