44import click
55
66from pyhf import __version__
7- from pyhf .cli import rootio , spec , infer , patchset , complete
7+ from pyhf .cli import rootio , spec , infer , patchset , utils , complete
88from pyhf .contrib import cli as contrib
9- from pyhf import utils
9+ from pyhf . utils import citation
1010
1111logging .basicConfig ()
1212log = logging .getLogger (__name__ )
1515def _print_citation (ctx , param , value ):
1616 if not value or ctx .resilient_parsing :
1717 return
18- click .echo (utils .citation ())
19- ctx .exit ()
20-
21-
22- def _debug (ctx , param , value ):
23- if not value or ctx .resilient_parsing :
24- return
25- click .echo (utils .debug_info ())
18+ click .echo (citation ())
2619 ctx .exit ()
2720
2821
@@ -38,15 +31,6 @@ def _debug(ctx, param, value):
3831 expose_value = False ,
3932 is_eager = True ,
4033)
41- @click .option (
42- "--debug" ,
43- help = "Produce OS / environment information useful for filing a bug report" ,
44- default = False ,
45- is_flag = True ,
46- callback = _debug ,
47- expose_value = False ,
48- is_eager = True ,
49- )
5034def pyhf ():
5135 """Top-level CLI entrypoint."""
5236
@@ -69,8 +53,8 @@ def pyhf():
6953
7054pyhf .add_command (patchset .cli )
7155
56+ pyhf .add_command (utils .cli )
57+
7258pyhf .add_command (complete .cli )
7359
7460pyhf .add_command (contrib .cli )
75-
76- # pyhf.add_command(utils.cli)
0 commit comments