Skip to content
Snippets Groups Projects
Commit 43f5f75f authored by Someshwaran R's avatar Someshwaran R :ghost:
Browse files

hasoption arg.

parent 1409ab66
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/python
import sys
from lib.Argument import Argument
a = Argument(sys.argv)
if(a.hasOption('--file')):
data = json.loads(os.popen('mediainfo --Output=JSON '+a.getOptionsValue('--file')).read())
print(data)
\ No newline at end of file
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