Changes config to positional argument.

Wed, 10 Jan 2018 18:06:02 +0200

author
Iannis <i.binietoglou@impworks.gr>
date
Wed, 10 Jan 2018 18:06:02 +0200
changeset 16
ddaea4327bd5
parent 15
93b6b945d939
child 17
9d25bd3e15c4
child 18
a952c1b250a8
child 20
111f05973553
child 42
c95ee9720e7b

Changes config to positional argument.

CHANGELOG.rst file | annotate | diff | comparison | revisions
scc_access/scc_access.py file | annotate | diff | comparison | revisions
--- a/CHANGELOG.rst	Wed Jan 10 17:58:15 2018 +0200
+++ b/CHANGELOG.rst	Wed Jan 10 18:06:02 2018 +0200
@@ -4,6 +4,7 @@
 0.6.2 - 2018-01-10
 ------------------
 * Fixed bug when download optical files.
+* Changes config file path to positional argument.
 
 0.6.1 - 2017-12-15
 ------------------
--- a/scc_access/scc_access.py	Wed Jan 10 17:58:15 2018 +0200
+++ b/scc_access/scc_access.py	Wed Jan 10 18:06:02 2018 +0200
@@ -493,9 +493,9 @@
 def main():
     # Define the command line arguments.
     parser = argparse.ArgumentParser()
+    parser.add_argument("config", help="Path to configuration file")
     parser.add_argument("filename", nargs='?', help="Measurement file name or path.", default='')
     parser.add_argument("system", nargs='?', help="Processing system id.", default=0)
-    parser.add_argument("-c", "--config", help="Path to configuration file")
     parser.add_argument("-p", "--process", help="Wait for the results of the processing.",
                         action="store_true")
     parser.add_argument("--delete", help="Measurement ID to delete.")

mercurial