Ideas to improve the Creditcoin-cli's 'distribute-rewards' command processor

I know the payout(claiming staking rewards) action should be done within 84 era(or something).

If there is era time-limits,
How about adding some validation logics following that check if an era option value is correct or not.

if ( era < 1 || era > 84 ) {
throw new Error( “Era value must be between 1 and 84” );

to the code (