| 1 | package SPVM::CommandInfo; | ||
| 2 | |||
| 3 | 1; | ||
| 4 | |||
| 5 | =head1 Name | ||
| 6 | |||
| 7 | SPVM::CommandInfo - Command Line Information | ||
| 8 | |||
| 9 | =head1 Usage | ||
| 10 | |||
| 11 | use CommandInfo; | ||
| 12 | |||
| 13 | =head1 Description | ||
| 14 | |||
| 15 | C<CommandInfo> in L<SPVM> has methods to get command line information such as a program name and arguments. | ||
| 16 | |||
| 17 | =head1 Class Variables | ||
| 18 | |||
| 19 | =head2 PROGRAM_NAME | ||
| 20 | |||
| 21 | C<our $PROGRAM_NAME : ro string;> | ||
| 22 | |||
| 23 | A program name when the program starts. | ||
| 24 | |||
| 25 | =head2 ARGV | ||
| 26 | |||
| 27 | C<our $ARGV : ro string[];> | ||
| 28 | |||
| 29 | Comand line arguments passed when the program starts. | ||
| 30 | |||
| 31 | =head2 BASETIME | ||
| 32 | |||
| 33 | C<our $BASETIME : ro long;> | ||
| 34 | |||
| 35 | The time when the program starts. This is the same as Perl C<$^T>. | ||
| 36 | |||
| 37 | =head2 WARNING | ||
| 38 | |||
| 39 | C<our $WARNING : ro byte;> | ||
| 40 | |||
| 41 | A warning flag. | ||
| 42 | |||
| 43 | =head1 Class Methods | ||
| 44 | |||
| 45 | =head2 BASE_TIME | ||
| 46 | |||
| 47 | B<Deprecated> | ||
| 48 | |||
| 49 | C<method BASE_TIME : long ();> | ||
| 50 | |||
| 51 | Returns the value of L</"BASETIME"> field. | ||
| 52 | |||
| 53 | =head1 Copyright & License | ||
| 54 | |||
| 55 | Copyright (c) 2023 Yuki Kimoto | ||
| 56 | |||
| 57 | MIT License |