Skip to content
Snippets Groups Projects
Commit a9c58540 authored by Albert Feghaly's avatar Albert Feghaly
Browse files

Use conventional argument style for deletion

parent bf77d1c8
Branches master
No related tags found
1 merge request!21Resolve "Delete datafile"
......@@ -17,7 +17,7 @@ def main():
parser.add_argument("-D", "--download", help="Download", action='store_true')
parser.add_argument("-U", "--upload", help="Upload", action='store_true')
parser.add_argument("-P", "--update", help="Update", action='store_true')
parser.add_argument("-Del", "--delete", help="Delete", action='store_true')
parser.add_argument("-X", "--delete", help="Delete", action='store_true')
args = parser.parse_args().__dict__
......@@ -104,7 +104,7 @@ def main():
print("cancel delete datafile!")
else:
print('Nothing to do, please choose --download, --upload or --update')
print('Nothing to do, please choose --download, --upload, --update or --delete')
def yes_or_no(question):
......@@ -117,6 +117,5 @@ def yes_or_no(question):
return yes_or_no(question+ "(y/n):")
if __name__ == "__main__" :
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment