@@ -45,26 +45,26 @@ describe('implicit help', () => {
4545 expect ( helper . optionTerm ( implicitHelp ) ) . toEqual ( '-h, --help' ) ;
4646 } ) ;
4747
48- test ( 'when short flag obscured then help term is --help' , ( ) => {
49- const program = new commander . Command ( ) ;
50- program . addOption ( new commander . Option ( '-h, --huge' ) . hideHelp ( ) ) ;
51- const helper = new commander . Help ( ) ;
52- const implicitHelp = helper . visibleOptions ( program ) [ 0 ] ;
53- expect ( helper . optionTerm ( implicitHelp ) ) . toEqual ( '--help' ) ;
54- } ) ;
48+ // test('when short flag obscured then help term is --help', () => {
49+ // const program = new commander.Command();
50+ // program.addOption(new commander.Option('-h, --huge').hideHelp());
51+ // const helper = new commander.Help();
52+ // const implicitHelp = helper.visibleOptions(program)[0];
53+ // expect(helper.optionTerm(implicitHelp)).toEqual('--help');
54+ // });
5555
56- test ( 'when long flag obscured then help term is --h' , ( ) => {
57- const program = new commander . Command ( ) ;
58- program . addOption ( new commander . Option ( '-H, --help' ) . hideHelp ( ) ) ;
59- const helper = new commander . Help ( ) ;
60- const implicitHelp = helper . visibleOptions ( program ) [ 0 ] ;
61- expect ( helper . optionTerm ( implicitHelp ) ) . toEqual ( '-h' ) ;
62- } ) ;
56+ // test('when long flag obscured then help term is --h', () => {
57+ // const program = new commander.Command();
58+ // program.addOption(new commander.Option('-H, --help').hideHelp());
59+ // const helper = new commander.Help();
60+ // const implicitHelp = helper.visibleOptions(program)[0];
61+ // expect(helper.optionTerm(implicitHelp)).toEqual('-h');
62+ // });
6363
64- test ( 'when help flags obscured then implicit help hidden' , ( ) => {
65- const program = new commander . Command ( ) ;
66- program . addOption ( new commander . Option ( '-h, --help' ) . hideHelp ( ) ) ;
67- const helper = new commander . Help ( ) ;
68- expect ( helper . visibleOptions ( program ) ) . toEqual ( [ ] ) ;
69- } ) ;
64+ // test('when help flags obscured then implicit help hidden', () => {
65+ // const program = new commander.Command();
66+ // program.addOption(new commander.Option('-h, --help').hideHelp());
67+ // const helper = new commander.Help();
68+ // expect(helper.visibleOptions(program)).toEqual([]);
69+ // });
7070} ) ;
0 commit comments