Minor improvements to help asc -h

This commit is contained in:
dcodeIO
2018-01-18 06:55:30 +01:00
parent fc40ed80f7
commit 27a66c1a7a
4 changed files with 54 additions and 43 deletions

View File

@ -98,7 +98,11 @@ class Control {
/** Tests whether the collector is currently paused. */
get paused(): bool { return (this.state & Control.PAUSED_BIT) != 0; }
/** Sets whether the collector is currently paused. */
set paused(paused: bool) { this.state = paused ? this.state |= Control.PAUSED_BIT : this.state &= ~Control.PAUSED_BIT; }
set paused(paused: bool) {
this.state = paused
? this.state |= Control.PAUSED_BIT
: this.state &= ~Control.PAUSED_BIT;
}
///////////////////////////////// Methods ///////////////////////////////////