fix #992 by creating fake command line arguments