Changeset View
Changeset View
Standalone View
Standalone View
sbin/bectl/bectl.c
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
libbe_handle_t *be; | libbe_handle_t *be; | ||||
int | int | ||||
usage(bool explicit) | usage(bool explicit) | ||||
{ | { | ||||
FILE *fp; | FILE *fp; | ||||
fp = explicit ? stdout : stderr; | fp = explicit ? stdout : stderr; | ||||
fprintf(fp, | fprintf(fp, "%s", | ||||
"usage:\tbectl {-h | -? | subcommand [args...]}\n" | "usage:\tbectl {-h | -? | subcommand [args...]}\n" | ||||
#if SOON | |||||
"\tbectl add (path)*\n" | |||||
#endif | |||||
"\tbectl activate [-t] beName\n" | "\tbectl activate [-t] beName\n" | ||||
"\tbectl create [-e {nonActiveBe | -e beName@snapshot}] beName\n" | "\tbectl create [-r] [-e {nonActiveBe | beName@snapshot}] beName\n" | ||||
"\tbectl create beName@snapshot\n" | "\tbectl create [-r] beName@snapshot\n" | ||||
"\tbectl destroy [-F] {beName | beName@snapshot}\n" | "\tbectl destroy [-F] {beName | beName@snapshot}\n" | ||||
"\tbectl export sourceBe\n" | "\tbectl export sourceBe\n" | ||||
"\tbectl import targetBe\n" | "\tbectl import targetBe\n" | ||||
#if SOON | "\tbectl jail {-b | -U} [{-o key=value | -u key}]... " | ||||
"\tbectl add (path)*\n" | "{jailID | jailName}\n" | ||||
#endif | "\t bootenv [utility [argument ...]]\n" | ||||
"\tbectl jail [{-b | -U}] [{-o key=value | -u key}]... bootenv [utility [argument ...]]\n" | "\tbectl list [-DHas]\n" | ||||
"\tbectl list [-a] [-D] [-H] [-s]\n" | |||||
"\tbectl mount beName [mountpoint]\n" | "\tbectl mount beName [mountpoint]\n" | ||||
"\tbectl rename origBeName newBeName\n" | "\tbectl rename origBeName newBeName\n" | ||||
"\tbectl {ujail | unjail} ⟨jailID | jailName | bootenv)\n" | "\tbectl {ujail | unjail} {jailID | jailName} bootenv\n" | ||||
"\tbectl {umount | unmount} [-f] beName\n"); | "\tbectl {umount | unmount} [-f] beName\n"); | ||||
return (explicit ? 0 : EX_USAGE); | return (explicit ? 0 : EX_USAGE); | ||||
} | } | ||||
/* | /* | ||||
* Represents a relationship between the command name and the parser action | * Represents a relationship between the command name and the parser action | ||||
▲ Show 20 Lines • Show All 445 Lines • Show Last 20 Lines |