type=str, metavar="URL", dest="H"),
Option("-o", "--output", help="write here (default stdout)",
type=str, metavar="FILE", default=None),
- Option("--dot", help="Graphviz dot output", dest='format',
- const='dot', action='store_const'),
- Option("--xdot", help="attempt to call Graphviz xdot", dest='format',
- const='xdot', action='store_const'),
Option("--distance", help="Distance matrix graph output (default)",
dest='format', const='distance', action='store_const'),
Option("--utf8", help="Use utf-8 Unicode characters",
action='store_false', default=True, dest='key'),
]
+DOT_OPTIONS = [
+ Option("--dot", help="Graphviz dot output", dest='format',
+ const='dot', action='store_const'),
+ Option("--xdot", help="attempt to call Graphviz xdot", dest='format',
+ const='xdot', action='store_const'),
+]
+
TEMP_FILE = '__temp__'
"versionopts": options.VersionOptions,
"credopts": options.CredentialsOptions,
}
- takes_options = COMMON_OPTIONS
+ takes_options = COMMON_OPTIONS + DOT_OPTIONS
takes_args = ()
def get_db(self, H, sambaopts, credopts):
class cmd_reps(GraphCommand):
"repsFrom/repsTo from every DSA"
- takes_options = COMMON_OPTIONS + [
+ takes_options = COMMON_OPTIONS + DOT_OPTIONS + [
Option("-p", "--partition", help="restrict to this partition",
default=None),
]
class cmd_ntdsconn(GraphCommand):
"Draw the NTDSConnection graph"
- takes_options = COMMON_OPTIONS + [
+ takes_options = COMMON_OPTIONS + DOT_OPTIONS + [
Option("--importldif", help="graph from samba_kcc generated ldif",
default=None),
]