groupAPIOrIndex.add_argument('--api',help="URL to api.php.")
groupAPIOrIndex.add_argument('--index',help="URL to index.php.")
groupAPIOrIndex.add_argument('--api',help="URL to api.php")
groupAPIOrIndex.add_argument('--index',help="URL to index.php")
groupXMLOrImages=parser.add_argument_group()
groupXMLOrImages.add_argument('--xml',action='store_true',help="Generates an XML dump. Retrieves full history of all pages (if you want only the current version use --xml --curonly)")
parser.add_argument('--curonly',action='store_true',help='Store only the current version of pages.')
groupXMLOrImages.add_argument('--xml',action='store_true',help="generates a full history XML dump (--xml --curonly for current revisions only)")
parser.add_argument('--curonly',action='store_true',help='store only the current version of pages')
groupXMLOrImages.add_argument('--images',action='store_true',help="Generates an image dump")
groupXMLOrImages.add_argument('--images',action='store_true',help="generates an image dump")
parser.add_argument('--path',help='Path to store wiki dump at.')