Name

Class::Usul::TraitFor::DebugFlag - Handles the state of the debug flag

Synopsis

use Moo;

extends 'Class::Usul';
with    'Class::Usul::TraitFor::DebugFlag';

Description

Handles the state of the debug flag

Configuration and Environment

Defines the following command line options;

D debug

Turn debugging on

n noask

Do not prompt to turn debugging on

Subroutines/Methods

BUILD

Called just after the object is constructed this method handles prompting for the debug state if it is an interactive session. Also offers the option to quit

debug_flag

$cmd_line_option = $self->debug_flag

Returns the command line debug flag to match the current debug state

Diagnostics

None

Dependencies

Class::Usul::Options
Moo::Role

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Class-Usul. Patches are welcome

Acknowledgements

Larry Wall - For the Perl programming language

Author

Peter Flanigan, <pjfl@cpan.org>

License and Copyright

Copyright (c) 2018 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE