Fixed #22835 -- Deprecated NoArgsCommand

* Added warning to the class
* Added note in 1.8 release notes
* Added note in deprecation.txt
* Replaced occurences of NoArgsCommand by BaseCommand