Skip to content

Commit

Permalink
fulfill the implementation of nava --file="test.wav", `nava "test.w…
Browse files Browse the repository at this point in the history
…av"` and `nava test.wav`
  • Loading branch information
AHReccese committed May 1, 2024
1 parent 4352e56 commit 638a8e9
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions nava/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ def main():
parser.add_argument(
'--file',
nargs=1,
metavar="audio file name",
metavar='audio file name',
type=str,
help="name of the audio file",
help='name of the audio file',
)
# parse the arguments from the standard input
args = parser.parse_args()
run_nava(args)
parser.add_argument(
'filename',
nargs='?',
metavar='audio file name',
type=str,
help='name of the audio file'
)
args = parser.parse_known_args()
run_nava(args[0])


if __name__ == "__main__":
Expand Down

0 comments on commit 638a8e9

Please sign in to comment.