Get the geometry from command-line or a file