Opened 8 years ago

Closed 8 years ago

#10674 closed Bug Report - General (Invalid)

Mythfilldatabase does not accept --file parameters

Reported by: martin_ginkel@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.25-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I used mythfilldatabase with xml files downloaded from an external source. I used to call mythfilldatabase --file 1 <xmlfile>

but apparently the getopt parser has been rewritten to assume --file is a boolean parameter only:

mythfilldatabase --file ~/.mythXml/2012_05/05_01.xml

Boolean type options do not accept values:

--file

Received '/home/ginkel/.mythXml/2012_05/05_01.xml' but unassociated arguments have not been enabled mythfilldatabase version: fixes/0.25 [v0.25-59-gae7ac79] www.mythtv.org Misc. Options: ... --file Bypass grabbers and define sourceid and file

--xmlfile XML file to import manually

mythfilldatabase --file 1 ~/.mythXml/2012_05/05_01.xml

Boolean type options do not accept values:

--file

Received '1' but unassociated arguments have not been enabled mythfilldatabase version: fixes/0.25 [v0.25-59-gae7ac79] www.mythtv.org Misc. Options: ... --file Bypass grabbers and define sourceid and file

--xmlfile XML file to import manually

Change History (1)

comment:1 Changed 8 years ago by Kenni Lund [kenni a kelu dot dk]

Resolution: Invalid
Status: newclosed

The --file argument is a boolean in 0.25-fixes as you wrote yourself. Try with the following syntax:

mythfilldatabase --update --file --sourceid 1 --xmlfile file.xml
Note: See TracTickets for help on using tickets.