public function eval_file( $args, $assoc_args ) {

		$file = $args[0];

		$order   = Utils\get_flag_value( $assoc_args, 'order', 'ASC' );
		$orderby = Utils\get_flag_value( $assoc_args, 'orderby', null );

		if ( ! file_exists( $file ) ) {
			WP_CLI::error( "'$file' does not exist." );
		}

		self::profile_eval_ish(
			$assoc_args,
			function() use ( $file ) {
				self::include_file( $file );
			},
			$order,
			$orderby
		);
	}
public function eval_file( $args, $assoc_args ) {

		$file = $args[0];

		$order   = Utils\get_flag_value( $assoc_args, 'order', 'ASC' );
		$orderby = Utils\get_flag_value( $assoc_args, 'orderby', null );

		if ( ! file_exists( $file ) ) {
			WP_CLI::error( "'$file' does not exist." );
		}

		self::profile_eval_ish(
			$assoc_args,
			function() use ( $file ) {
				self::include_file( $file );
			},
			$order,
			$orderby
		);
	}
public function eval_file ( $ args , $ assoc_args ) { $ file = $ args [ 0 ] ; $ order = Utils \ get_flag_value ( $ assoc_args , 'order' , 'ASC' ) ; $ orderby = Utils \ get_flag_value ( $ assoc_args , 'orderby' , null ) ; if ( ! file_exists ( $ file ) ) { WP_CLI :: error ( "'$file' does not exist." ) ; } self :: profile_eval_ish ( $ assoc_args , function ( ) use ( $ file ) { self :: include_file ( $ file ) ; } , $ order , $ orderby ) ; }
Profile execution of an arbitrary file.

File execution happens after WordPress has loaded entirely, which means
you can use any utilities defined in WordPress, active plugins, or the
current theme.

## OPTIONS

<file>
: The path to the PHP file to execute and profile.

[--hook[=<hook>]]
: Focus on key metrics for all hooks, or callbacks on a specific hook.

[--fields=<fields>]
: Display one or more fields.

[--format=<format>]
: Render output in a particular format.
---
default: table
options:
- table
- json
- yaml
- csv
---

[--order=<order>]
: Ascending or Descending order.
---
default: ASC
options:
- ASC
- DESC
---

[--orderby=<orderby>]
: Order by fields.

@subcommand eval-file
Profile execution of an arbitrary file .