Permalink
Browse files

Add additional dependency checking to command line parser.

  • Loading branch information...
1 parent d4ccef8 commit b710b8378f50d4df65542ae100fdde32d90f408c @wagnerrp wagnerrp committed Apr 23, 2012
Showing with 13 additions and 4 deletions.
  1. +13 −4 mythtv/programs/mythmetadatalookup/commandlineparser.cpp
@@ -24,9 +24,6 @@ void MythMetadataLookupCommandLineParser::LoadArguments(void)
"Batch update recorded program metadata. If a recording's "
"rule has an inetref but the recording does not, it will "
"be inherited.", "")
- << add("--refresh-rules", "refresh-rules", false,
- "Also update inetref for recording rules when metadata is "
- "found for a recording (Best effort only, imperfect)", "")
<< add("--refresh-all-rules", "refresh-all-rules", false,
"Batch update metadata for recording rules. This will "
"set inetrefs for your recording rules based on an automated "
@@ -47,6 +44,18 @@ void MythMetadataLookupCommandLineParser::LoadArguments(void)
"This option will not overwrite any existing artwork. If a "
"rule or recording has not been looked up, this will attempt "
"to look it up. This is a very aggressive option! Use with "
- "care.", "") );
+ "care.", "")
+ << new CommandLineArg("chanid")
+ << new CommandLineArg("jobid") );
+
+ add("--refresh-rules", "refresh-rules", false,
+ "Also update inetref for recording rules when metadata is "
+ "found for a recording (Best effort only, imperfect)", "")
+ ->SetBlocks("refresh-all")
+ ->SetBlocks("refresh-all-rules")
+ ->SetBlocks("refresh-all-artwork")
+ ->SetBlocks("refresh-all-artwork-dangerously")
+ ->SetChildOf("chanid")
+ ->SetChildOf("jobid");
}

0 comments on commit b710b83

Please sign in to comment.