### Added
+- The command line option `--help` has been added as an alias for `-?`. #1618
- The command line option `--version` has been added as an alias for `-V`. #1618
### Fixed
gvc->common.info[1], gvc->common.info[2]);
if (GvExitOnUsage) graphviz_exit(0);
return 1;
+ } else if (argv[i] &&
+ (startswith(argv[i], "-?") || strcmp(argv[i], "--help") == 0)) {
+ return dotneato_usage(0);
} else if (argv[i] && argv[i][0] == '-') {
rest = &argv[i][2];
switch (c = argv[i][1]) {
case 'y':
Y_invert = TRUE;
break;
- case '?':
- return (dotneato_usage(0));
- break;
default:
agerr(AGERR, "%s: option -%c unrecognized\n\n", gvc->common.cmdname,
c);
assert "line 3:" in stderr, \
"GVPR did not identify correct line of syntax error"
-@pytest.mark.parametrize("long,short", (pytest.param("--help", "-?",
- marks=pytest.mark.xfail(strict=True)),
+@pytest.mark.parametrize("long,short", (("--help", "-?"),
("--version", "-V")))
def test_1618(long: str, short: str):
"""