Returns the user arguments for the program after parsing them from the provided file or list.
as_file - The content of a flag with an optional path to a json containing the args as hex
strings.
as_list - The content of a flag with the direct numeric value of the list.
Making sure not both are provided should be done by the cli.