From c73e19fc0eb524dd28e2b52d7f52e4ee564ba9c4 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 1 Jun 2025 10:19:36 +0000 Subject: driver: added --cmd=ar support, the pe_cmd_ar() stub, and the perk-ar symlink. --- src/skin/pe_skin_ar.c | 15 +++++++++++++++ src/skin/pe_skin_default.c | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/skin/pe_skin_ar.c (limited to 'src/skin') diff --git a/src/skin/pe_skin_ar.c b/src/skin/pe_skin_ar.c new file mode 100644 index 0000000..512073d --- /dev/null +++ b/src/skin/pe_skin_ar.c @@ -0,0 +1,15 @@ +#include "perk_driver_impl.h" +#include "perk_visibility_impl.h" +#include "argv/argv.h" + +const perk_hidden struct argv_option pe_ar_options[] = { + {"Wversion", 'v',TAG_VERSION,ARGV_OPTARG_NONE, + ARGV_OPTION_HYBRID_ONLY,0,0, + "show version information"}, + + {"Whelp", 'h',TAG_HELP,ARGV_OPTARG_NONE, + ARGV_OPTION_HYBRID_ONLY,0,0, + "show usage information"}, + + {0,0,0,0,0,0,0,0} +}; diff --git a/src/skin/pe_skin_default.c b/src/skin/pe_skin_default.c index 5ca7387..95024c7 100644 --- a/src/skin/pe_skin_default.c +++ b/src/skin/pe_skin_default.c @@ -10,7 +10,7 @@ const perk_hidden struct argv_option pe_default_options[] = { "show usage information [listing %s options only]"}, {"cmd", 0,TAG_CMD,ARGV_OPTARG_REQUIRED,0, - "perk",0, + "perk|ar",0, "invoke one of the following perk commands: {%s}"}, {0,0,0,0,0,0,0,0} -- cgit v1.2.3