changeset 304:7d0f2e18add4

Remove the need to use -i to specify input file on the command line
author Amine Sehili <amine.sehili@gmail.com>
date Thu, 10 Oct 2019 20:37:40 +0200
parents ce60e2ec33b0
children a7bdc583e622
files auditok/cmdline.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/auditok/cmdline.py	Wed Oct 09 22:18:48 2019 +0100
+++ b/auditok/cmdline.py	Thu Oct 10 20:37:40 2019 +0200
@@ -47,12 +47,12 @@
         )
         group = parser.add_argument_group("Input-Output options")
         group.add_argument(
-            "-i",
-            "--input",
             dest="input",
             help="Input audio or video file. Use '-' for stdin "
             "[default: read from microphone using pyaudio]",
-            metavar="FILE",
+            metavar="input",
+            nargs='?',
+            default=None
         )
         group.add_argument(
             "-I",